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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
CK1992
Helper II
Helper II

User input to be used as a DAX Variable

Hi team,

 

I hope you are well.

 

I was wondering if there is a way to create a user input and then use it in my DAX.

 

Please see the example below.

 

In the report page of my PBI, let's say that there is a way for the user to pick "YES", or "NO" under the variable USERINPUT variable. 

 

Then I need the following:

 

DAX = 
   IF( USERINPUT = "YES",
                            ........,

                            ........ )
These  values are not slicers and can not be used as slicers.

Please let me know your thoughts.

 

Thanks,

CK

 


 
1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@CK1992 , You can create an independent table with values Yes and No and use that to measure

 

if(selectedvalue(Table[Column]), "Yes", [Measure], blank())

 

 

 

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

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@CK1992 , You can create an independent table with values Yes and No and use that to measure

 

if(selectedvalue(Table[Column]), "Yes", [Measure], blank())

 

 

 

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

Helpful resources

Announcements
Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

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.