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
Nick_Church
Frequent Visitor

Dashboard filter that allows users to determine the measures they want to see

 

Hi,

 

I'm fairly new to PowerBI, so I'm pretty sure this must be an easy one but I can't find any answers after a bit of googling!

 

So my issue is that I want to create a filter that allows a dashboard / report user to decide what measures they want to see.

 

Context for this is that I have a line graph which is currently plotting FY17, FY18 and FY18 Budget figures.

 

I want the intial version of the report to return the FY17 vas F18 figures to see how we perform relative to last year. However I want the users to have th ability to bring in the budget lines should they choose.

 

Any ideas would be appreciated.

 

Thanks

 

Nick

1 ACCEPTED SOLUTION
v-caliao-msft
Employee
Employee

@Nick_Church,

 

I have tested it on my local environment using my sample data.
Capture.PNG

Create a table by enter data.
Capture1.PNG

Add the column to a slicer, and create a measure in original table.

Measure =
VAR SelectedItem =
    IF (
        ISFILTERED ( Slicer[Slicer] ),
        CONCATENATEX ( VALUES ( Slicer[Slicer] ), Slicer[Slicer], "" ),
        "FY17FY18"
    )
VAR Check =
    IF ( ISERROR ( SEARCH ( MAX ( Table1[Attribute] ), SelectedItem ) ), 0, 1 )
RETURN
    Check

Use this measure in your line chart filter.
Capture2.PNGCapture3.PNGCapture4.PNG

 

If this is not what you want, please elaborate your issue so that we can make further analysis.

 

Regards,

Charlie Liao

View solution in original post

2 REPLIES 2
v-caliao-msft
Employee
Employee

@Nick_Church,

 

I have tested it on my local environment using my sample data.
Capture.PNG

Create a table by enter data.
Capture1.PNG

Add the column to a slicer, and create a measure in original table.

Measure =
VAR SelectedItem =
    IF (
        ISFILTERED ( Slicer[Slicer] ),
        CONCATENATEX ( VALUES ( Slicer[Slicer] ), Slicer[Slicer], "" ),
        "FY17FY18"
    )
VAR Check =
    IF ( ISERROR ( SEARCH ( MAX ( Table1[Attribute] ), SelectedItem ) ), 0, 1 )
RETURN
    Check

Use this measure in your line chart filter.
Capture2.PNGCapture3.PNGCapture4.PNG

 

If this is not what you want, please elaborate your issue so that we can make further analysis.

 

Regards,

Charlie Liao

Thats awesome - thanks so much!

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.