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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
VikramAdi
Helper II
Helper II

How to use Revenue measure as slicer (drop down >100 Millions and <100 Millions Revenue)

Hi Team,

 

User want to filter Revenue data using screen level slicer. Don't want to apply filter on filter pane.

 

I have a Revenue measure .it contains overall revenue amount. Here user need a slicer to check >100Million or <100Million Revenue Brands. So i want to add a slicer it contains >100M,<100M .when user click on on the slicer ,slicer drop down should visible >100M,<100M only. user flexbele to choose from drop down and filter the data. Currently my [Revenue]  measure is sum of amount.

 

How i can achive this . can anyone help me.

 

 

 

1 ACCEPTED SOLUTION

Hi @VikramAdi ,

You can follow these steps below:

1.Add new table.

vyifanwmsft_0-1713417270777.png

 

2.Add FLAG measure and put it into fliter.

FLAG = 
VAR _judgement =
    IF ( [Revenue] > 400, ">400", "<400" )
RETURN
    IF ( _judgement IN ALLSELECTED ( 'Table 2'[SELECTED] ), 1, 0 )

 

vyifanwmsft_1-1713417346325.png

Final output:

vyifanwmsft_2-1713417602159.png

vyifanwmsft_3-1713417622176.png

How to Get Your Question Answered Quickly - Microsoft Fabric Community

If it does not help, please provide more details with your desired out put and pbix file without privacy information.

 

Best Regards,

Ada Wang

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

4 REPLIES 4
Ashish_Mathur
Super User
Super User

Hi,

I have solved a similar problem in the attached PBI file.

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
v-yifanw-msft
Community Support
Community Support

Hi @VikramAdi ,

Depending on the information you have provided, you can follow these steps below:

1.Add a new table as a slicer.

vyifanwmsft_0-1713320058396.png

vyifanwmsft_1-1713320105798.png

 

2.Add new measures.

REVENUE<400 =
IF ( SELECTEDVALUE ( 'Table 2'[SELECTED] ) = "<400" && [Revenue] < 400, 1, 0 )
REVENUE>400 =
IF ( SELECTEDVALUE ( 'Table 2'[SELECTED] ) = ">400" && [Revenue] > 400, 1, 0 )
FLAG = 
IF (
    SELECTEDVALUE ( 'Table 2'[SELECTED] ) = "<400",
    [REVENUE<400],
    [REVENUE>400]
)

 

3.Put FLAG in Filters.

vyifanwmsft_2-1713320348609.png

 

Final output:

vyifanwmsft_3-1713320404240.png

 

How to Get Your Question Answered Quickly - Microsoft Fabric Community

If it does not help, please provide more details with your desired out put and pbix file without privacy information.

 

Best Regards,

Ada Wang

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

Thanks for your response @v-yifanw-msft . Your approch working fine. When i choose multi select in slicer result  coming empty.Single select working fine. can you please suggest for multi seletion(>400 and <400)

Hi @VikramAdi ,

You can follow these steps below:

1.Add new table.

vyifanwmsft_0-1713417270777.png

 

2.Add FLAG measure and put it into fliter.

FLAG = 
VAR _judgement =
    IF ( [Revenue] > 400, ">400", "<400" )
RETURN
    IF ( _judgement IN ALLSELECTED ( 'Table 2'[SELECTED] ), 1, 0 )

 

vyifanwmsft_1-1713417346325.png

Final output:

vyifanwmsft_2-1713417602159.png

vyifanwmsft_3-1713417622176.png

How to Get Your Question Answered Quickly - Microsoft Fabric Community

If it does not help, please provide more details with your desired out put and pbix file without privacy information.

 

Best Regards,

Ada Wang

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

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.