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 and bookmark via measure

Dear Community,

I have a table, and a measure called ROL,
ROL has 3 different values, by filtering ROL, table should be updated, 
How can I have this feature in powerBI? Is it possible?
(Is it possible put ROL in filter pane and have 3 bookmarks which bookmarks are filtered by a measure ROL? If yes, How? )

Thanks in advance 

1 ACCEPTED SOLUTION

Hi @Anonymous ,

 

If the measure results are fixed values,you can put them in a slicer table,such as below:

v-kelly-msft_0-1610530159070.png

Then create a measure as below:

Measure 2 = 
SWITCH(SELECTEDVALUE('Slicer table'[Slicer]),
-1,
CALCULATE(MAX('Table'[Bata]),FILTER('Table','Table'[Measure]=-1)),
0,
CALCULATE(MAX('Table'[Bata]),FILTER('Table','Table'[Measure]=0)),
1,
CALCULATE(MAX('Table'[Bata]),FILTER('Table','Table'[Measure]=1)))

And you will see:

v-kelly-msft_1-1610530266105.png

 

You can also put the measure you created in filter pane and key in a value you need:

v-kelly-msft_2-1610530361809.png

 

I made a simple .pbix file for reference,pls see attached.

 

 

Best Regards,
Kelly

Did I answer your question? Mark my post as a solution!

View solution in original post

5 REPLIES 5
amitchandak
Super User
Super User

@Anonymous , If ROL is the measure and has three formula's you can use measure slicer to display that

measure slicer
https://radacad.com/change-the-column-or-measure-value-in-a-power-bi-visual-by-selection-of-the-slicer-parameter-table-pattern
https://community.powerbi.com/t5/Desktop/Slicer-MTD-QTD-YTD-to-filter-dates-using-the-slicer/td-p/500115

 

In case you do not need this. Can you elobrate a bit

Anonymous
Not applicable

@amitchandak 
ROL is the measure with one formula, which results in -1,0,1.
what I want is to have a slicer, and when I select 1, table show the result of list of myproduct in case their ROL=1, and etc for ROL=0 and -1,
the problem is that I can not put measure into slicer, powerBI do not let to do it, 
So I thought If its possible to handle it via Filter Pane.

@Anonymous , For that you have to create an independent table with these three values. 

You need to have a group by where this value is 1,0,-1 and then use values/summarize and filter these values in new measures

 

ROI table( Three-row,1,-1,-0) - You can use enter data https://www.tutorialgateway.org/how-to-enter-data-into-power-bi/

 

Refer to my video that for bucket and range you have = value - https://www.youtube.com/watch?v=CuczXPj0N-k

Create measure like

 

Sumx(filter(VALUES('Table'[ID]),[ROI] =Min('ROI Table'[ROI])),[ROI])

 

Anonymous
Not applicable

@amitchandak 
I checked your video, 
In my case it does not work, the reason is that In forumula of measure ROL, there exist a value which called Beta, amount of beta comes from a slicer, So I can not do segmentation or bucketing, 
 the values in table are shown by a ROL, and ROL also related to a slicer, Beta.
Anyway thanks for your help 

Hi @Anonymous ,

 

If the measure results are fixed values,you can put them in a slicer table,such as below:

v-kelly-msft_0-1610530159070.png

Then create a measure as below:

Measure 2 = 
SWITCH(SELECTEDVALUE('Slicer table'[Slicer]),
-1,
CALCULATE(MAX('Table'[Bata]),FILTER('Table','Table'[Measure]=-1)),
0,
CALCULATE(MAX('Table'[Bata]),FILTER('Table','Table'[Measure]=0)),
1,
CALCULATE(MAX('Table'[Bata]),FILTER('Table','Table'[Measure]=1)))

And you will see:

v-kelly-msft_1-1610530266105.png

 

You can also put the measure you created in filter pane and key in a value you need:

v-kelly-msft_2-1610530361809.png

 

I made a simple .pbix file for reference,pls see attached.

 

 

Best Regards,
Kelly

Did I answer your question? Mark my post as a solution!

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.