Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi All,
I have franchise filter on the page. I am showing this information in a line chart which is plotted for Month and Weeks.
What i want is when franchise is OTHER or NON_COE Other or Contingency, I want to show var u calculation. When other gets selected than I want to show var w calculation.
The problem comes when multiple selection happenes on this franchise filter. When nothing selected that also causes issue.
I have tried below approach when i tried with IN and counting each franchise based calculation in each variables. But that not worked for me.
Is there a way, based on selected values in a slicer I do calculation differently for different selected value like for Other and AWM selected. I calculate values for Other differently and AWM differently and return summed up numbers.
Solved! Go to Solution.
@nayan28apr , in the first version, can try var like these example and check
Var Contingency = If(Countx(filter(SALLSELECTED(SonarSabo[franchise]),SonarSabo[franchise] ="Contingency"),SonarSabo[franchise])+0 >0 ,
CALCULATE(u,SonarSabo[franchise]="Contingency"),0)
Hi @nayan28apr ,
Please try to do like this.
Best regards,
Lionel Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@nayan28apr , in the first version, can try var like these example and check
Var Contingency = If(Countx(filter(SALLSELECTED(SonarSabo[franchise]),SonarSabo[franchise] ="Contingency"),SonarSabo[franchise])+0 >0 ,
CALCULATE(u,SonarSabo[franchise]="Contingency"),0)
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
109 | |
98 | |
77 | |
66 | |
54 |
User | Count |
---|---|
144 | |
104 | |
101 | |
86 | |
64 |