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

Get the percentage of of each region

Hi gurus,

 

May I request for some help to get the comply percentage where <15 minutes is comply and >15 minutes is not comply. If I use excel the formula would be like this in excel and in the dashboard I only want to show comply percent based on month and section. 

iena_2-1647183094495.png

The output will be like this where the month is the slicer in power bi.

iena_4-1647183328528.png

 

Thank you in advance for your help. 

 

 

1 ACCEPTED SOLUTION

Hi @Anonymous ,

 

According to your description, you want to get the ”%” of each region where the Follow up time= “<15 Minutes”.

 

Pleasure try to create a measure:

Comply(%) = 
VAR _sum =
    CALCULATE (
        SUM ( 'Table'[Count of Status] ),
        FILTER (
            'Table',
            'Table'[Follow up time] = "<15 Minutes"
                && 'Table'[Region] = MAX ( 'Table'[Region] )
        )
    )
VAR _total =
    CALCULATE (
        SUM ( 'Table'[Count of Status] ),
        FILTER ( 'Table', 'Table'[Region] = MAX ( 'Table'[Region] ) )
    )
RETURN
    DIVIDE ( _sum, _total )

 

Output:

vjinweilimsft_0-1647425170884.png

 

Best Regards,
Jinwei Li
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

3 REPLIES 3

Hi @Anonymous ,

 

According to your description, you want to get the ”%” of each region where the Follow up time= “<15 Minutes”.

 

Pleasure try to create a measure:

Comply(%) = 
VAR _sum =
    CALCULATE (
        SUM ( 'Table'[Count of Status] ),
        FILTER (
            'Table',
            'Table'[Follow up time] = "<15 Minutes"
                && 'Table'[Region] = MAX ( 'Table'[Region] )
        )
    )
VAR _total =
    CALCULATE (
        SUM ( 'Table'[Count of Status] ),
        FILTER ( 'Table', 'Table'[Region] = MAX ( 'Table'[Region] ) )
    )
RETURN
    DIVIDE ( _sum, _total )

 

Output:

vjinweilimsft_0-1647425170884.png

 

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

 

Anonymous
Not applicable

Thank you so much.. Very appreciate it so much.. Hope you have the nice day.

truptis
Community Champion
Community Champion

Hi @Anonymous ,

Create a column and use this formula:
Status = If(Follow_up_time ="<15 minutes", "Comply","Not Comply")
create another column:
Result = calculate((count_of_status/500)*100, filter(tablename, Status="Comply"))

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.