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

I want display data in dial guage for two different ways

Hi ,

 

I have set of Operators which are segregated as if (Chats)Transferred='Y' then show Handled and Transferred as user name otherwise keep as it is the operator name - which i have implemented in User column - Image 1

By default  I am showing average of overall column of last 4 weeks in each Dial Guage visual ( Excluding handled and transferred user) i.e. Transferred='N' (Image 2) 

But on selection handled and transferred from slicer the dial guage should display average of overall of last 4 weeks in each dial guage visual ( only for handled and transferred users)

 

Please help me how can i perform different operation on same visual .

 

Image 1Image 1Image 2Image 2

2 ACCEPTED SOLUTIONS
Anonymous
Not applicable

Hi ,

 

I am able to show default values in dial guage by excluding handled and transferred  , but i am facing problem for - if i select handled and transferred from slicer then the dial guage values becomes Blank , but it should give me average of overall for handled and transferred there.

 

i.e. 1. By default - handled and transferred should be excluded

     2. On selection of slicer - it should calculate average of handled and transferred overall.

 

Please help me!!

View solution in original post

Hi @Anonymous ,

 

If I understand you correctly, you will need to create a measure using SELECTEDVALUE() function to get the selected value and ISFILTERED() function to determine if the slicer is filtered.

Please refer to below measure and the result would be show as below.

Measure = 
IF (
    ISFILTERED ( 'Table 2'[Name] ),
    CALCULATE (
        AVERAGE ( 'Table'[amount] ),
        FILTER ( 'Table', 'Table'[Name] = SELECTEDVALUE ( 'Table 2'[Name] ) )
    ),
    CALCULATE (
        AVERAGE ( 'Table'[amount] ),
        FILTER ( 'Table', 'Table'[Name] <> "D" )
    )
)

1.PNG

2.PNG
BTW, Pbix as attached, hopefully works for you.

 

Best Regards,

Jay

Community Support Team _ Jay Wang

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

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

View solution in original post

5 REPLIES 5
v-jayw-msft
Community Support
Community Support

Hi  @Anonymous ,

 

If i understand you correctly, you can use ISFILTERED() function to exclude handled and transferred user by default.

For Example:

IF(NOT(ISFILTERED('Tablename'[Columnname])),ResultIfTrue,ResultIfFalse)


Best Regards,

Jay 

Community Support Team _ Jay Wang

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

 

 

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.
Anonymous
Not applicable

Hi ,

 

I am able to show default values in dial guage by excluding handled and transferred  , but i am facing problem for - if i select handled and transferred from slicer then the dial guage values becomes Blank , but it should give me average of overall for handled and transferred there.

 

i.e. 1. By default - handled and transferred should be excluded

     2. On selection of slicer - it should calculate average of handled and transferred overall.

 

Please help me!!

Hi @Anonymous ,

 

If I understand you correctly, you will need to create a measure using SELECTEDVALUE() function to get the selected value and ISFILTERED() function to determine if the slicer is filtered.

Please refer to below measure and the result would be show as below.

Measure = 
IF (
    ISFILTERED ( 'Table 2'[Name] ),
    CALCULATE (
        AVERAGE ( 'Table'[amount] ),
        FILTER ( 'Table', 'Table'[Name] = SELECTEDVALUE ( 'Table 2'[Name] ) )
    ),
    CALCULATE (
        AVERAGE ( 'Table'[amount] ),
        FILTER ( 'Table', 'Table'[Name] <> "D" )
    )
)

1.PNG

2.PNG
BTW, Pbix as attached, hopefully works for you.

 

Best Regards,

Jay

Community Support Team _ Jay Wang

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

Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.
Anonymous
Not applicable

Thank you so much ...It worked

Hi @Anonymous ,

 

Could you please mark my answer as a solution if it solved your problem😁.

 

Best Regards,

Jay

Community Support Team _ Jay Wang

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

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

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.