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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
kollakeerthana1
New Member

Tableau's FIXED into DAX

How do I convert the below tableau's calculated field into DAX? I dont want to create a column for it. I want to use this field as a filter in the report.

 

 

{FIXED [VisitId]:

SUM( IF CONTAINS([QuestionText], "Did you test the terminal?")

THEN
IF ([AnswerText] = "Yes")

THEN 1 END END)}

1 ACCEPTED SOLUTION
Dangar332
Super User
Super User

Hi, @kollakeerthana1 

Try below measure for Your problem

 

FIXED VisitId=
var a = if(
         CONTAINS(
             Tablename,
             Tablename[QuestionText],
             ("Did you test the terminal?")) && Tablename[AnswerText] = "Yes",
             1
         )


 


In Power BI you can't direct use measure as filter(Slicer) for that you need to use Field parameter
Refer LINK  for  Field parameter

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.

View solution in original post

1 REPLY 1
Dangar332
Super User
Super User

Hi, @kollakeerthana1 

Try below measure for Your problem

 

FIXED VisitId=
var a = if(
         CONTAINS(
             Tablename,
             Tablename[QuestionText],
             ("Did you test the terminal?")) && Tablename[AnswerText] = "Yes",
             1
         )


 


In Power BI you can't direct use measure as filter(Slicer) for that you need to use Field parameter
Refer LINK  for  Field parameter

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.

Helpful resources

Announcements
July 2024 Power BI Update

Power BI Monthly Update - July 2024

Check out the July 2024 Power BI update to learn about new features.

PBI_Carousel_NL_June

Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.