Quantcast
Channel: Desktop topics
Viewing all articles
Browse latest Browse all 213916

Divide With a Sum and Filter on same column

$
0
0

I am new to PowerBI and have searched the forum, which has been very helpful, but I'm stuck on what I think is a very simple task, but the results are not as expected.

 

I have a Filtered, Grouped table of phone call records with the following columns:

  • User Name
  • Date
  • Direction (True/False)
  • Count (count of rows based on the grouping of the above three fields)

I want to come up with a percentage of incoming calls (direction = false) to outgoing calls (direction = true) and have the following calculation:

 

CallBack = DIVIDE( CALCULATE(sum('Raw Calls'[Count]), 'Raw Calls'[DirectionCode]=FALSE()) , CALCULATE(sum('Raw Calls'[Count]), 'Raw Calls'[DirectionCode]=TRUE()) )

 

It does not give an error, but when I put it into a "Card" visulization, the result is "Blank"

 

So I thought I could create two variables: Incoming and Outgoing, then just divide those.  The formulas for those were:

Incoming = CALCULATE(sum('Raw Calls'[Count]), 'Raw Calls'[DirectionCode]=FALSE())

Outgoing = CALCULATE(sum('Raw Calls'[Count]), 'Raw Calls'[DirectionCode]=TRUE())

 

The first one creates just fine, but when I create the second on I get a circular reference error.

 

What am I doing wrong?

 

-Frank


Viewing all articles
Browse latest Browse all 213916

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>