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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Anonymous
Not applicable

Measure as a Slicer

Hi Guys,

 

Do you have maybe an idea how a measure could be used as a Slicer?

 

In my device inventory data, there are some cases where multiple users are logged into the same devices. I created a measure called "Max User" which holds the username of who is logged into the device more frequently.

 

DeciveIDMax User
1A
2B
3C
4D
5E

 

Now I would like to create a Slicer, based on this measure so that I can filter some visuals based on the username. However, I am unable to put the measure as a slicer.

 

I would appreciate your help on this.

TIA!

1 ACCEPTED SOLUTION
v-yiruan-msft
Community Support
Community Support

Hi  @Anonymous ,

The measure CAN NOT be applied the slicer. You can create a measure to get a flag which can judge if the user can be displayed or not, and apply a visual-level filter on the visual with the condition(like Flag is 1)... You can refer the following links to get it:

Show most 5 recent records based on date and team nameyingyinr_0-1671157843487.png

Measure as Slicer - Workaround?

How to use a measure with a slicer in power bi

 

If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text  format and your expected result with backend logic and special examples. It would be helpful to find out the solution. You can refer the following links to share the required info:

How to provide sample data in the Power BI Forum

How to Get Your Question Answered Quickly

And it is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community.

How to upload PBI in Community

Best Regards

Community Support Team _ Rena
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-yiruan-msft
Community Support
Community Support

Hi  @Anonymous ,

The measure CAN NOT be applied the slicer. You can create a measure to get a flag which can judge if the user can be displayed or not, and apply a visual-level filter on the visual with the condition(like Flag is 1)... You can refer the following links to get it:

Show most 5 recent records based on date and team nameyingyinr_0-1671157843487.png

Measure as Slicer - Workaround?

How to use a measure with a slicer in power bi

 

If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text  format and your expected result with backend logic and special examples. It would be helpful to find out the solution. You can refer the following links to share the required info:

How to provide sample data in the Power BI Forum

How to Get Your Question Answered Quickly

And it is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community.

How to upload PBI in Community

Best Regards

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

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.