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

Dashboard is showing incorrect % ages while applying filters

Dear All,

 

I am having some issue in visualization when i apply various filters. Below is my table 

 

When i applied the filter for Ontime/Delayed - month wise its shows 98% ontime and 2% delayed in Jan etc., The same when i select the filter of Cluster instead of Month - it is limited to 25% and showing as 24% and 1% for Africa etc., 

 

How will i get evel for clusters as 98% and 2% - cluster wise 

 

MonthEmpl IDOntime/DelayedCluster
Jan-20AOntimeAfrica
Jan-20BDelayedAsia
Jan-20COntimeAsia
Jan-20DOntimeAsia
Feb-20EOntimeAmerica
Feb-20FDelayedAsia
Feb-20GDelayedAmerica
Feb-20HOntimeAfrica
Mar-20IOntimeAmerica
Mar-20JDelayedAsia
Mar-20KDelayedAfrica
Mar-20LDelayedAmerica
Apr-20MOntimeAsia
Apr-20NDelayedAfrica
1 ACCEPTED SOLUTION

Hello@Anonymous 

 

You may use the following measures:

 

On Time % =
DIVIDE (
    COUNTAX (
        'Table',
        IF ( 'Table'[Ontime/Delayed] = "Ontime", 'Table'[Ontime/Delayed] )
    ),
    COUNTROWS ( 'Table' )
)

Delayed% = 1-[On Time %]

 

It will give you the following output:

 

Capture.PNG

Regards,
Vivek

If it helps, please mark it as a solution

Kudos would be a cherry on the top 🙂

https://www.vivran.in/

View solution in original post

4 REPLIES 4
v-alq-msft
Community Support
Community Support

Hi, @Anonymous 

Based on your description, you may create measures as follows.

 

Ontime % = 
DIVIDE(
    COUNTROWS(
        FILTER(
            ALLSELECTED('Table'),
            'Table'[Ontime/Delayed] = "Ontime"
        )
    ),
    COUNTROWS(
        ALLSELECTED('Table')
    )
)

Delayed % = 
DIVIDE(
    COUNTROWS(
        FILTER(
            ALLSELECTED('Table'),
            'Table'[Ontime/Delayed] = "Delayed"
        )
    ),
    COUNTROWS(
        ALLSELECTED('Table')
    )
)

 

 

Result:

a1.png

 

a2.png

 

If I misunderstand your thoughts, please show me your expected result. Thanks.

 

Best Regards

Allan

 

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

Greg_Deckler
Super User
Super User

Is there a measure involved here? What are you expecting the results to be? Please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

Hi,

 

Yes - there is a measure involved. At cluster level also i wanted the % to be shown @ 100% level within the cluster

 

Example : In below table - Asia is having 3 line items of which 2 are ontime reporting & 1 is delayed reporting, I wanted the visualization to show as 67% as ontime & 33% as delayed when filterd at cluster level 

 

Thanks and Best Regards,

Srihari.K

Hello@Anonymous 

 

You may use the following measures:

 

On Time % =
DIVIDE (
    COUNTAX (
        'Table',
        IF ( 'Table'[Ontime/Delayed] = "Ontime", 'Table'[Ontime/Delayed] )
    ),
    COUNTROWS ( 'Table' )
)

Delayed% = 1-[On Time %]

 

It will give you the following output:

 

Capture.PNG

Regards,
Vivek

If it helps, please mark it as a solution

Kudos would be a cherry on the top 🙂

https://www.vivran.in/

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.