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
swong
Helper II
Helper II

Slicer threshold based on raw column value

Hi,

 

Is it possible to create a threshold slicer based on a raw column value?

 

I have a column with values [10,20,30,40,50,60]. I want to create a slicer such that the value selected capture everything greater than or equal to it, i.e. if I select "10", then all data points with a column value >10 are visualized; if I select "50", only data points with a column value of 50 or 60 are visualized.

 

Is this possible, without having to create a parameter and reset it each time?

If the only was is to create a parameter, is it possible to change this parameter once I publish this report and create a dashboard?

1 ACCEPTED SOLUTION
v-yuezhe-msft
Employee
Employee

@swong,

Firstly, create a calculated table using the DAX below.
ValueTables = VALUES(Table[Column1])

Secondly, create a measure in your original table.
expectedresult = CALCULATE(SUM(Table[Column1]),FILTER(Table,Table[Column1] >= FIRSTNONBLANK(ValueTables[Column1],1)))

Thirdly, create a slicer using the column of the newly created table.
1.JPG

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

6 REPLIES 6
v-yuezhe-msft
Employee
Employee

@swong,

Firstly, create a calculated table using the DAX below.
ValueTables = VALUES(Table[Column1])

Secondly, create a measure in your original table.
expectedresult = CALCULATE(SUM(Table[Column1]),FILTER(Table,Table[Column1] >= FIRSTNONBLANK(ValueTables[Column1],1)))

Thirdly, create a slicer using the column of the newly created table.
1.JPG

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.

Hi @v-yuezhe-msft,

 

Thanks for the help!

 

How do I create a calculated table?

@swong,

Click the "New Table" option and apply the DAX formula I provide.

Regards,

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.

Hi @v-yuezhe-msft,

 

I see, thanks!

 

I created a sample .pbix with Delta values that are not bucketized. Is there a way to still apply the threshold slicer and display the raw column values? Here is the .pbix file: https://microsoft-my.sharepoint.com/:u:/r/personal/t-sewong_microsoft_com/_layouts/15/guestaccess.as...

 

Currently, the slicer doesn't filter the values showen, it just filters which rows show the slicer value.

Hi @v-yuezhe-msft,

 

Checking in about this question.

 

Thanks!

@swong,

Create your table visual as follows.
1.JPG

Then use the column in the ValueTables to create slicer.
2.JPG

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.