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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Anonymous
Not applicable

Assign a segment to a dax mesure

Hello everyone.

On Power BI I make the ratio between 2 measures.
And I would like to apply a filter via a segment (so that the user can change it easily) except that the segment
applies the filter for the 2 dax measures on the ratio while I would like it to apply only to one of the 2 measures.
I know it is possible to assign a segment to only one visualization, but is it possible to assign it to only one dax measure ?

Thank you !!

1 ACCEPTED SOLUTION

you would modify "measure2" to remove the filter that is controlled by that slicer (via REMOVEFILTERS).

View solution in original post

7 REPLIES 7
Anonymous
Not applicable

Antoine17333_1-1679473479382.png

As you can see, I'm making a curve that corresponds to a measure as a function of time. Except that this measure is a ratio, and I would like that when I filter, the filter only applies to "measure1" and not "measure2"

you would modify "measure2" to remove the filter that is controlled by that slicer (via REMOVEFILTERS).

Anonymous
Not applicable

mesure2 = CALCULATE([blabla1], filter(blabla2, blabla2[blabla3] = "blabla4"), REMOVEFILTERS())
When i do that, it works but that also delete my filter "blabla4", and i don't want that.
I tried that : mesure2 = CALCULATE([blabla1], filter(blabla2, blabla2[blabla3] = "blabla4"), REMOVEFILTERS(blabla5[blabla6]))
Where "blabla5[blabla6]" correspond to the filter i surrounded in red, and it doesn't work i don't know why.
Thanks for your help

and it doesn't work 

please provide more details

 

Anonymous
Not applicable

 

Antoine17333_0-1679646974835.pngAntoine17333_1-1679646995522.png

 


As you can see when I filter, the measure2 changes despite the fact that I added removfilter in the dax code "measure2 = CALCULATE([blabla1], filter(blabla2, blabla2[blabla3] = "blabla4"), REMOVEFILTERS(blabla5[blabla6])"

Indeed blabla5[blabla6], corresponds to "Zone Arcep (Achil)"

Anonymous
Not applicable

I have succeeded!!

errors of inattention... thanks !

lbendlin
Super User
Super User

what is a segment?  Can you show an example?

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

Find out what's new and trending in the Fabric community.

Users online (1,363)