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

dax to show count of all the percentages together

hi i am looking for dax to show count of all the percentages together

i have my p1%,p2%,p3% calalutions done but separtely.

now i am trying to display all the p1%p2%p3% together as single count.

 

4 REPLIES 4
PhilipTreacy
Super User
Super User

Hi @Anonymous 

The information you've provided doesn't make the issue very clear. 

Can you please provide your PBIX.  What percentages are you talking about?  How do you calculate them? Please show some data and code.

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


Anonymous
Not applicable

greeshma_0-1615124285737.pnggreeshma_1-1615124326913.pnggreeshma_2-1615124352649.png

 

Hi @Anonymous ,

 

Try the below formula:

count =
VAR p1_sla =
    IFERROR ( ( 'Table'[P1 HIF OF LIDL] / [P1 Count] * 100 ), 100 )
VAR p2_sla =
    IFERROR ( ( 'Table'[P2 HIF OF LIDL] / [P2 Count] * 100 ), 100 )
VAR p3_sla =
    IFERROR ( ( 'Table'[P3 HIF OF LIDL] / [P3 Count] * 100 ), 100 )
RETURN
    p1_sla + p2_sla + p3_sla

If it is not the result you want to count, can you provide detailed information and expected results so that I can do further testing?

 

Best Regards,
Henry


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

 

Anonymous
Not applicable

hi henryk

i tried your formula but not geeting the current count.

my result after applying your query is 46.73

where my individual p1 is 100 p2 is 99.68 and p3 is 100

could you plz help me

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.