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

Percent of Total by Filtered Value

Hello,

I am trying to figure out the percentage of total people who had >=10 Units Total for the given month. 

akeck_1-1631822322894.png

 

So in this case there are 3 Total people. In September, 2 out of 3 have total sum of units greater than 10. So the percentage would = 2/3 = 66% 

 

August would be 1 out of 3 people had units >=10 so the percentage would be 33%

 

I am looking for a measure or something to be able to throw on a card and when the page is filtered by month it shows the percent 

 

Any help is greatly appreciated! 

1 ACCEPTED SOLUTION
v-chenwuz-msft
Community Support
Community Support

Hi @Anonymous ,

 

Try this measure:

Percent of Total =
DIVIDE (
    COUNTROWS (
        FILTER (
            ALL ( 'Table' ),
            [Date] = SELECTEDVALUE ( 'Table'[Date] )
                && [Unites] >= 10
        )
    ),
    COUNTROWS (
        FILTER ( ALL ( 'Table' ), [Date] = SELECTEDVALUE ( 'Table'[Date] ) )
    )
)

 

Result

vchenwuzmsft_0-1632100189350.png

 

 

Best Regards

Community Support Team _ chenwu zhu

 

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

2 REPLIES 2
v-chenwuz-msft
Community Support
Community Support

Hi @Anonymous ,

 

Try this measure:

Percent of Total =
DIVIDE (
    COUNTROWS (
        FILTER (
            ALL ( 'Table' ),
            [Date] = SELECTEDVALUE ( 'Table'[Date] )
                && [Unites] >= 10
        )
    ),
    COUNTROWS (
        FILTER ( ALL ( 'Table' ), [Date] = SELECTEDVALUE ( 'Table'[Date] ) )
    )
)

 

Result

vchenwuzmsft_0-1632100189350.png

 

 

Best Regards

Community Support Team _ chenwu zhu

 

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

Ashish_Mathur
Super User
Super User

Hi,

I have assumed you have a Calendar Table with a relationship from the Date column of your Data Table to the Date column of the Calendar Table.  In the slicer select a Year and Month Name.  Try this measure

Measure 1 = COUNTROWS(FILTER(VALUES(Data[Client Name]),[Units]>=10))

Measure 2 = divide([measure1],distinctcount(data[client name]))

Hope this helps.

 


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

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.