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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

How to apply a slicer only on one column but on on an other in a ratio formula.

Hi,

 

Here is an example :

 

numeratordenominatortypedate
13a01/01/2020
23a01/01/2020
33b01/01/2020
13a02/01/2020
23a02/01/2020
33b02/01/2020

 

I need a slicer to select the type : "a", "b" or both of them. But I want to keep all the denominator when i select "a" or "b"

 

So for the both dates, when i select "a" i sould have (1+2)/(3+3+3) and for "b" (3)/(3+3+3) but when i select a type in my slicer, i have the selection for both numerator and denominator :

 

 

formula = CALCULATE( SUM ( 'Table'[num] ))
          / CALCULATE(SUM('Table'[den]),ALL('Table'[den],'Table'[den]))

 

 

I understand that "ALL" is not the good function but maybe my whole idea is bad to do that, so I prefer to ask you... 

 

Thanks 🙂

6 REPLIES 6
v-kelly-msft
Community Support
Community Support

Hi  @Anonymous ,

 

Have you checked my question?Could you pls make an explanation about it?I would get to work on your issue once I get more details.

 

Best Regards,
Kelly

Did I answer your question? Mark my post as a solution!

v-kelly-msft
Community Support
Community Support

Hi @Anonymous ,

 

Could you pls explain why the denominator is 3+3+3?And why numerator is 1+2?If you choose "a",it should be (1+2+1+2)/(3+3+3+3+3+3+3) if you wanna keep all the denominator.

 

 

Best Regards,
Kelly

Did I answer your question? Mark my post as a solution!

sevenhills
Super User
Super User

I am not sure what you are trying from your post.

 

I tried as measure and measure 2 and see the ouput

 

Measure = Sumx('Table (2)', 'Table (2)'[numerator]) / sum('Table (2)'[denominator])

Measure 2 = Sum('Table (2)'[numerator]) / Calculate ( sum ( 'Table (2)'[denominator]), All('Table (2)')) 

 

sevenhills_0-1607714095689.png

 

Hope this is the one you need

 

( Measure 2 is Ratio of Total irrespective of filter, FYI)

 

- SV

Anonymous
Not applicable

@sevenhills did you see my answer ?

It was not clear, what output you are expecting from your post? If you give the output and sample, then I can see whether I can provide the formula... 

 

Thanks

Anonymous
Not applicable

Hi,

 

Thanks it's almost what I want. I forgot an information, I want denominator keep the selection on the date (and the numerator too of course) ! (sorry)

 

So I would have 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors