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.
Hii
i need to calculate gross value..gross value=A(category)-selected category
if i select B in the slicer then gross Value should be gross value= -10(26-36)
if i select D in the slicer then gross Value should be gross value= -63(26-89)
irrespective of filter selection category A value should not be changed..
i can't create another table for removing the filter context as i have another slicers as well
how can i do this??
Thanks
Solved! Go to Solution.
Hi,
Please try this measure:
Measure = CALCULATE(SUM('Table'[Value]),FILTER(ALL('Table'),'Table'[category]="A"))-CALCULATE(SUM('Table'[Value]),FILTER(ALL('Table'),'Table'[category]=SELECTEDVALUE('Table'[category])))
Choose this measure as a card visual and when you select category in slicer, it shows:
Best Regards,
Giotto Zhi
Hi,
Please try this measure:
Measure = CALCULATE(SUM('Table'[Value]),FILTER(ALL('Table'),'Table'[category]="A"))-CALCULATE(SUM('Table'[Value]),FILTER(ALL('Table'),'Table'[category]=SELECTEDVALUE('Table'[category])))
Choose this measure as a card visual and when you select category in slicer, it shows:
Best Regards,
Giotto Zhi
Did you look into editing interactions of your slicers, so one doesn't impact the visual where you insert your measure ?
Hi @Adamtall
Try this:
Measure =
CALCULATE ( SUM ( 'Table'[value] ), 'Table'[category] = "A" ) //value of A
- SUM ( 'Table'[value] )//less vlaue of other categories
Proud to be a Super User!
Hi, I dont need help 😛 its @sarjensystems1
But your forumla dosent make him happy becuse category "A" should be 26 when pressing category A and you will get 0 will your formula.
/Adam
Hi,
try this measure
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 |