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
sagarsahoo_123
Helper IV
Helper IV

In a slicer Multiple Filter selection is not giving the correct result

Hi Team,

Wish you all a very Happy New year.

Here in slicer when multiple selection is done, it is not giving the desired result, but single selection is working fine.

Please note that i am using Measure in slicer.

sagarsahoo_123_0-1673845656010.png

In the above if you look at the input Range slicer, i am using measure in it. And code for my measure is given below.

Input_Range(WorkTime) =
IF(
    ISBLANK(VW_NIPPON_PRODUCTIVITY[Last_12M_Trends]),"No Input",
    if(
    VW_NIPPON_PRODUCTIVITY[Last_12M_Trends]<4, "<4 Hours",
    if(
    VW_NIPPON_PRODUCTIVITY[Last_12M_Trends]<6, "4 to <6 Hours",
        IF(
        VW_NIPPON_PRODUCTIVITY[Last_12M_Trends]<8,"6 to <8 Hours",
            IF(
            VW_NIPPON_PRODUCTIVITY[Last_12M_Trends]<=9,"8 to 9 Hours",">9 Hours"
             )
          )
     )
  )
)
 
-----------------
Here i am displaying the 12 months users Work Time and at the end based on the average value of Work time i am categorising into different segment. 
Now i am selecting <4 and 4 to 6 hours categories but it displays all. Please see the below image.
sagarsahoo_123_1-1673845973358.png

If you look at the highlighted yellow color is diplaying above 6 hurs work time.

Is there anything in the code which i can modify to get desired result or Can i use Switch option instead of If condition!

Please help

 

Please note silgle selection is giving correct result.

 

Regards,

Sagar

 
0 REPLIES 0

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.