Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
I have the following tables:
I've calculated a new measure with CALCULATE:
Measure Travel = Calculate(Ticket Scans, Ticket Group = A)+Calculate(Ticket Sales, Ticket Group = B)
(Answer total= 1000, where A contributes 300, and B 700).
If I try to show the measure on the bar chart and use the product group dimension as a lable, I get the same height bars (1000 for both Group A and Group B). Same for the table visual - all group types, including the total, show 1000.
Visual Example: the first table shows the above calculated measure where Legend uses the Ticket Group dimension. As you see, it shows same value for both (Type A & B). While I need a result as per second bar chart.
Simplified table visual example:
I would expect that the calculated measure splits correctly by contributing dimension values. Is there a better formula to use than CALCULATE.
Thank You,
Dovi
Solved! Go to Solution.
OK - I got it know. Had to use FILTER function, not the CALCULATE one, due to filter context.
🙂
Tough to follow. Please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490
OK - I got it know. Had to use FILTER function, not the CALCULATE one, due to filter context.
🙂
User | Count |
---|---|
139 | |
113 | |
103 | |
73 | |
63 |
User | Count |
---|---|
136 | |
125 | |
107 | |
70 | |
61 |