The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
I have an issue with CALCULATE measures and RLS. I have created a measure to find cumulative total % of calls answered within bins of queue time.
Expression: CumulativeCalls = IF(COUNTROWS(PowerBI_Cust_Comp) > 0; CALCULATE(COUNT(PowerBI_Cust_Comp[CorrelationID]);FILTER(ALL(PowerBI_Cust_Comp[RightQueueTime (bins)]); PowerBI_Cust_Comp[RightQueueTime (bins)] <= max(PowerBI_Cust_Comp[RightQueueTime (bins)])));BLANK())
CorrelationID is the ID of the call and RightQueueTime is the time customers are waiting before the call is answered. The measure behaves differently when I view the report as another user in a specified role compared to when I view the report with only a slicer creating the same filter.
Measure behavior when RLS is turned ON: https://goo.gl/KCV8zj
A cumulative measure should not decrease along the x axis.
Anyone else with this issue?
Solved! Go to Solution.
Hi @Anonymous,
Please modify the measure like below then test again.
CumulativeCalls = IF(COUNTROWS(PowerBI_Cust_Comp) > 0; CALCULATE(COUNT(PowerBI_Cust_Comp[CorrelationID]);FILTER(ALLSELECTED(PowerBI_Cust_Comp); PowerBI_Cust_Comp[RightQueueTime (bins)] <= max(PowerBI_Cust_Comp[RightQueueTime (bins)])));BLANK())
Best Regards,
Qiuyun Yu
Hi @Anonymous,
Please modify the measure like below then test again.
CumulativeCalls = IF(COUNTROWS(PowerBI_Cust_Comp) > 0; CALCULATE(COUNT(PowerBI_Cust_Comp[CorrelationID]);FILTER(ALLSELECTED(PowerBI_Cust_Comp); PowerBI_Cust_Comp[RightQueueTime (bins)] <= max(PowerBI_Cust_Comp[RightQueueTime (bins)])));BLANK())
Best Regards,
Qiuyun Yu
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
111 | |
80 | |
78 | |
43 | |
37 |
User | Count |
---|---|
158 | |
111 | |
64 | |
59 | |
54 |