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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
Invesco
Helper V
Helper V

Pecentage based on Totals

Hi Experts 

Hi Experts

 

I want to work out the percentage based on the total value for each category in the Custoemr Hourney column including the blank column. .How would i amend the following measure to give me this answer

Customer Journey Consent =
VAR _CJC = SUMX(VALUES(dev_con_hcp_universe_flipped[customer_journey]),[Total Consent])

Return
    _CJC
 The above measure gives me the breakdown per category...
Invesco_0-1663691131764.png

 

1 ACCEPTED SOLUTION

Thanks i managed to work it out

Customer Journey Consent =
VAR _CJC = SUMX(VALUES(dev_con_hcp_universe_flipped[customer_journey]),[Total Consent])
VAR _TOTAL = SUMX(ALL(dev_con_hcp_universe_flipped[customer_journey]),[Total Consent])

Return
 DIVIDE(_CJC,_TOTAL,0)

View solution in original post

3 REPLIES 3
jgeddes
Super User
Super User

Does 

Customer Journey Consent =
VAR _CJC = SUMX(VALUES(dev_con_hcp_universe_flipped[customer_journey]),[Total Consent])

VAR _TOTAL = SUMX(ALL(dev_con_hcp_universe_flipped),[Total Consent])

Return
 DIVIDE(_CJC, _TOTAL, 0)
 
Give you the result you are looking for?



Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Thanks i managed to work it out

Customer Journey Consent =
VAR _CJC = SUMX(VALUES(dev_con_hcp_universe_flipped[customer_journey]),[Total Consent])
VAR _TOTAL = SUMX(ALL(dev_con_hcp_universe_flipped[customer_journey]),[Total Consent])

Return
 DIVIDE(_CJC,_TOTAL,0)

Hi jgeddes - no sorry. i was expecting each cate / 46192 = % value 

 
PREVIEW
 
 
 

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.