Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The FabCon + SQLCon recap series starts April 14th at 8am Pacific. If you’re tracking where AI is going inside Fabric, this first session is a can't miss. Register now

Reply
IF
Post Prodigy
Post Prodigy

Measure calculation with # value

Hi

I have a table which contains similar info:

Slicer1Slicer2Slicer3Value

#A07.202012
#B07.202014
C1A07.202021
C2A07.202023
D1B07.202032
D2B07.202034
#A08.202042
#B08.202044
C1A08.202055
C2A08.202035
D1B08.202046
D2B08.202065

 

I have 3 slicers. For example; when I select slicer3 as "08.2020" and Slicer2 as "B", I want to see value 44. I could not do it. I wrote a dax Measure=SUM(Table[Value]) but It calculates 44+46+65. How could I do it?

 

Best

 

1 ACCEPTED SOLUTION

hi  @IF 

What is the logic of your expected output?

for case 1, when you select slicer3 as "08.2020" and Slicer2 as "B", not select Slicer1, you want to see value 44 (that means you just want to see "#" in slicer1 )

but for case 2, If I use slicer2 it works, but it doesn't work when I use slicer1. what is your logic of this case?

 

Regards,

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

6 REPLIES 6
amitchandak
Super User
Super User

@IF , While this working correctly, I doubt you need # Only 

 

calculate(sum(Table[Value]) , filter(Table, Table[Slicer1]= "#"))

or

calculate(sum(Table[Value]) ,  Table[Slicer1]= "#")

 

Other should filter automatically

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Hi,

Thanks but it doesn't work. If I use slicer2 it works, but it doesn't work when I use slicer1. It always shows 86 if nothing is selected in slicer2.

Slicer.jpg

hi  @IF 

What is the logic of your expected output?

for case 1, when you select slicer3 as "08.2020" and Slicer2 as "B", not select Slicer1, you want to see value 44 (that means you just want to see "#" in slicer1 )

but for case 2, If I use slicer2 it works, but it doesn't work when I use slicer1. what is your logic of this case?

 

Regards,

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi,

It is solved with support of Ikalawski. 

 

All the best

Greg_Deckler
Community Champion
Community Champion

@IF - Seems like you want an AND slicer, like this one:

https://community.powerbi.com/t5/Quick-Measures-Gallery/Patient-Cohort-AND-Slicer/m-p/391883#M130



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Hi,

Thanks for sharing, but I don't know how to do it in this scenario.

Best

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.