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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Filter score card according to the parameter from the filter

Hi all,

 

I need help for really easy situation.

 

I have a score card. I want to create if case it works with a value which come from filter. The filter should has just 2 parameter. Like "1" and "2". I want to make  2 different calculation in if case.

I want to create a calculation like that
if a selected value from filter is 1 then
= AppendTable2[ValueDiv]
if a selected value from filter is 2 then
AppendTable2[ValueMor]

 

I couldn't find how can i create a filter like that. 

 

1 ACCEPTED SOLUTION
v-yuezhe-msft
Employee
Employee

@Anonymous,

I make a test in the following sample data.
2.PNG

I add a new parameter as below, and create a measure in appendtable2.

Measure = var selected=SELECTEDVALUE(Parameter[Parameter]) return IF(selected=1,SUM(AppendTable2[ValueDiv]),SUM(AppendTable2[ValueMor]))


1.PNG3.PNG

If the above dax don't help, please share sample data of your table here.

Regards,
Lydia

Community Support Team _ Lydia Zhang
If this 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
v-yuezhe-msft
Employee
Employee

@Anonymous,

I make a test in the following sample data.
2.PNG

I add a new parameter as below, and create a measure in appendtable2.

Measure = var selected=SELECTEDVALUE(Parameter[Parameter]) return IF(selected=1,SUM(AppendTable2[ValueDiv]),SUM(AppendTable2[ValueMor]))


1.PNG3.PNG

If the above dax don't help, please share sample data of your table here.

Regards,
Lydia

Community Support Team _ Lydia Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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