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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
yamina
Helper I
Helper I

Dynamic text filter in dax

Hello , 

 

Form this request, 

""NPS = CALCULATE([NPS], FILTER(Table_BSC_SST,Table_BSC_SST[supplier<>"SBE"))"""

I want to make the supplier field Dynamic. Depending on the chosen supplier, the NPS would be calculated without this choice.

Thank your  

1 ACCEPTED SOLUTION

Hello @yamina , 
If I understand your requirement correctly, I believe you should use a selectedvalue() in your measure, this selectedvalue () should have the supplier or whatever column used in your slicer that you want to select in your visual.

Following this logic.
NPS = CALCULATE([NPS],Table_BSC_SST[supplier]<>Selectedvalue(Table_BSC_SST[supplier]))

This will help exclude your selected slicer value from the values shown in your table or matrix. 

If this solution helps, please accept it as a solution and your kudos will be much appreciated!

View solution in original post

6 REPLIES 6
yamina
Helper I
Helper I

Hello @Moetazzahran

In fact, whatever the supllier I choose I want that the result in the visual excluded the result of the supplier choosen. I want to show the impact of the chosen supplier in the overall result.  

Hello @yamina , 
If I understand your requirement correctly, I believe you should use a selectedvalue() in your measure, this selectedvalue () should have the supplier or whatever column used in your slicer that you want to select in your visual.

Following this logic.
NPS = CALCULATE([NPS],Table_BSC_SST[supplier]<>Selectedvalue(Table_BSC_SST[supplier]))

This will help exclude your selected slicer value from the values shown in your table or matrix. 

If this solution helps, please accept it as a solution and your kudos will be much appreciated!

Joe_Barry
Super User
Super User

Hi @yamina

 

Do you only want to see one supplier result at a time or do you want to have the option to choose multiple?

 

Option One: Add a supplier filter to the page and have a single select on the slicer, this way only one supplier will be chosen at a time

 

Option Two: As your measure looks correct, it will automatically filter out this supplier you have chosen.

 

If you have something else in mind, please provide more detailed info

 

Joe




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

Proud to be a Super User!





Learn about the Star Schema, it will solve many issues in Power BI!

Date tables help! Learn more



LinkedIn
Let's connect on LinkedIn


Thank you Barry for your uick feed back, but I always have in my page a filter slicer for the supplier, but in my request I want to replace the supplier name " SBE" by a dynamic choice in my slicer filter.   

yamina_0-1717509370843.png

 

Hi @yamina 

You need to create this measure

IF(

HASONEVALUE(Supplier[Name]),

VALUES(Supplier[Name]),

MIN(Supplier[Name])

)



Then add the measure in the format section  > Title > fx > Then add the measure above to "What field should we base this on?"

Joe_Barry_0-1717587897804.png

Joe




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

Proud to be a Super User!





Learn about the Star Schema, it will solve many issues in Power BI!

Date tables help! Learn more



LinkedIn
Let's connect on LinkedIn


Hello @yamina , 

Can you please explain what you mean by making the supplier fied dynamic?

Do you mean making the slicer visual dynamic? If yes, if you don't want to show SBE within your slicer, why now exclude it from your slicer altogether in your filter panel?

Please let me know if I am missing the point.

 

Thank you.
Best regards,
Zahran

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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