Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
kstudsrud
Frequent Visitor

Ratio between column values

 

Capture2.JPGHi All, 

I am trying to divide each subject by "2017 - Total Population" and "2018 - Total Population" and get the percentage. 

For example in 2017...      2017 05 Asthma / 2017 - Total Patient Population

For example in 2018...      2018-05 Asthma / 2018- Total Patient Population

                                         2018 - 09 Diabete Mellitus / 2018- Total Patient Population
                                          2018 - 11 Hypertension / 2018 - Total Patient Population
                                         etc...

The problem I can't get over is that they are all in the same column "Subject".

I would keep 2017 in one column and 2018 in another.

Any suggestions would be awesome!!

thanks

 

4 REPLIES 4
v-danhe-msft
Microsoft Employee
Microsoft Employee

Hi @kstudsrud,

Due to I could not reproduce your data structure, could you please offer your data structure and post your desired result if possibel?

 

Regards,

Daniel He

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

Capture.JPG

 

Each GUID pertains to a specific patinet. I am trying to take the # of rows that say "2017 05 Asthma" and divide it by the # of rows that say "2017- Total Patient Population". 

I am trying do do this for all the different measures in the 'Subjuct' column in 2017/2018.  

Hi,

 

Share the link from where i can download your PBI file.


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

Hi,

 

Why are they in the same column?  Share the source data.  Share it in a form that can be pasted in Excel.


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

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.