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 for percentage

hi i am looking for dax
i have 2 measures 1 to count the request ids another to show the mtd count of request ids
i want to show the percentage of the 2 measures.
mtd count of request id = 24
count of request ids = 872
percentage  wil  be 24/872= 2.75%
how can i show by dax
i have tried this dax query but it is returning 0% 

greeshma_0-1619781079319.png

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

% = DIVIDE([sub],[MTD requestid])

View solution in original post

5 REPLIES 5
amitchandak
Super User
Super User

@Anonymous , you can create two meausre like

 

MTD = CALCULATE(count(Table[request id ]),DATESMTD('Date'[Date]))
All = CALCULATE(count(Table[request id ]),all('Date'[Date]))

 

make sure you use date tbale

 

then % = divide([MTD],[All])

 

To get the best of the time intelligence function. Make sure you have a date calendar and it has been marked as the date in model view. Also, join it with the date column of your fact/s. Refer :radacad sqlbi My Video Series Appreciate your Kudos.

Anonymous
Not applicable

hi
i have tried ur dax but the percentage is wrong
24/872 = 2.75 which i need to get but it is returning 72.73%

greeshma_0-1619782872574.png

 

Hi, @Anonymous 

Could you please tell me whether your problem has been solved?

For now, there is no content of description in the thread. If you still need help, please share a sample file for testing.

Best Regards,
Community Support Team _ Eason

Anonymous
Not applicable

% = DIVIDE([sub],[MTD requestid])

@Anonymous , Can you share your formula

 

if possible

Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

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.