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
michael95677
Helper III
Helper III

Need percent of total based on each of 3 possible values in a column (measure or calculated column?)

I have a column that has 3 possible values. Yes, No and NA. What I need is a measure (I'm assuming measure as it would apply to the entire tabl) that shows the percentage of the total count for each value. 

The count for total can come from that column or from other columns that will also show the same exact count of visits. 

Ultimately, I'm trying to show a trending graph for the number answered as Yes as a percent over time (3 months for example) for a group of providers as a whole and then break that out individually (some type of slicer to select providers one by one). 

Might need two measures or multiple variables etc. Having trouble knowing where to begin on this. 

Thank you in advance for any help. 

 

1 ACCEPTED SOLUTION
Ashish_Mathur
Super User
Super User

Hi,

You may download my PBI file from here.

Hope this helps.

Untitled.png


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

View solution in original post

8 REPLIES 8
Ashish_Mathur
Super User
Super User

Hi,

You may download my PBI file from here.

Hope this helps.

Untitled.png


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

Upon further testing the percentages never add up to 100%. I notice that you created a separate calendar outside of the actual dataset. Is this required? Thank you. 

Hi,

Those percentages have been derived from the DISTINCTCOUNT() function so while horizontal additions at the Date level will add up to 100%, foor onth they will not.


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

Thank you. Appreciate the clarification. 

Thank you so much.  Greatly appreciate your help on this. 🙂

You are welcome.


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

Hi,

Share some data and show the expected result.


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

Basically, I'm pulling about 1-3 months worth of data at a time. I want to trend the total count of Yes as a percent of the total count of the column and No and NS. In this case I provided a small sample of what is around 2,000 rows. For any one encounter date there might be 100 encounters where each encounter has the possibility of a provider answering Yes, No or No Soap (NS). 

I need to be able to show for a week or month etc. each day and how much the Yes percent is for that day, how much the No percent is for that day and how much the NS percent is for that day and then trend that over a week or month etc. Could also be done as totals for a week and compare each week in a month. 

Ideally, the ability to then slice or drill down and get the trend for each individual provider would be the goal. 

Thank you so much for the help. 🙂 

RenderingProviderProviderConfirm_ReconcileCheckBoxEncDate
SomeName1No07/25/2022
SomeName2No07/22/2022
SomeName1Yes07/20/2022
SomeName4Yes07/20/2022
SomeName5Yes07/22/2022
SomeName2No08/04/2022
SomeName7No08/03/2022
SomeName8No07/22/2022
SomeName1No07/29/2022
SomeName10Yes07/21/2022
SomeName11No08/08/2022
SomeName12No07/15/2022
SomeName2Yes08/15/2022
SomeName14Yes07/15/2022
SomeName3No07/15/2022
SomeName5Yes08/03/2022
SomeName1No08/02/2022
SomeName18No Soap08/04/2022

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.