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
Anonymous
Not applicable

% of Total - Help please!

Hi there, 

 

I'm hoping someone can help me with a % of total DAX based on an existing measure. 

 

Basically, I have created a measure that filters for 'matched' emails only: Total Matched emails = 

CALCULATE(DISTINCTCOUNTNOBLANK(greaterdata_tb_fact_population[hashedemail]),greaterdata_tb_fact_population[matched]="true")
 
This gives the total matched against any of the other colums in the table - age, gender, income etc.
 
I'd like a measure to give the % based on this total matched email total (not the total of all emails which I can figure out) 
 
I've tried a few different things but keep getting '100%' across all 
 
Here's an example of the table I'm testing with. As you can see, my formula for '% of total pop' works, but I'm trying to get one that gives % of total matched, across any dimension I need (eg: age, gender etc.) 
 
sonial_0-1651372945102.png

 

Any ideas?!

 

Thank you so much

Sonia

1 ACCEPTED SOLUTION
parry2k
Super User
Super User

@Anonymous Try this:

 

% Measure = 
DIVIDE (
   [Total Matched Emails],
   CALCULATE ( [Total Matched Emails], ALLSELECTED ( YourTableName )
)

 

 

‌‌ Follow us on LinkedIn and to our YouTube channel
I would ❤ Kudos if my solution helped. ‌‌ If you can spend time posting the question, you can also make effort to give Kudos to whoever helped to solve your problem. It is a token of appreciation!

 

‌‌ Visit us at https://perytus.com, your one-stop shop for Power BI-related projects/training/consultancy.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

View solution in original post

3 REPLIES 3
parry2k
Super User
Super User

@Anonymous glad to hear it worked, you need to understand what made it work. Cheers!

 

 

‌‌ Follow us on LinkedIn and to our YouTube channel
I would ❤ Kudos if my solution helped. ‌‌ If you can spend time posting the question, you can also make effort to give Kudos to whoever helped to solve your problem. It is a token of appreciation!

 

‌‌ Visit us at https://perytus.com, your one-stop shop for Power BI-related projects/training/consultancy.

 



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Anonymous
Not applicable

Thank you, @parry2k - that worked! I'd tried something very similar, but must have had it slightly off... 

 

Thanks again!

Sonia

parry2k
Super User
Super User

@Anonymous Try this:

 

% Measure = 
DIVIDE (
   [Total Matched Emails],
   CALCULATE ( [Total Matched Emails], ALLSELECTED ( YourTableName )
)

 

 

‌‌ Follow us on LinkedIn and to our YouTube channel
I would ❤ Kudos if my solution helped. ‌‌ If you can spend time posting the question, you can also make effort to give Kudos to whoever helped to solve your problem. It is a token of appreciation!

 

‌‌ Visit us at https://perytus.com, your one-stop shop for Power BI-related projects/training/consultancy.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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