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

1 ACCEPTED SOLUTION
jdbuchanan71
Super User
Super User

 

@Anonymous  try this

percentage = DIVIDE ( [mtd count of request id], [count of request ids] )

 

View solution in original post

4 REPLIES 4
v-cazheng-msft
Community Support
Community Support

Hi @Anonymous 

Is your problem solved? If you still have question, please share some sample data without sensitive data. If you have solved it, could you please share your solution?

 

Best Regards

Caiyun Zheng

 

jdbuchanan71
Super User
Super User

@Anonymous 

Not really enough information to find the problem.  Please show the values that come from the individual measures [MTD requestid] and [Count of request id], just add them to the visual next to the [r] measyure. What is the formulas for the two measure involved, what are the fields in the visual you are adding the measure to and how is your model layed out.

jdbuchanan71
Super User
Super User

 

@Anonymous  try this

percentage = DIVIDE ( [mtd count of request id], [count of request ids] )

 

Anonymous
Not applicable

hi jd
i had tried that query it is not working it is showing as 0%

greeshma_0-1619769204848.png

greeshma_1-1619769244204.png

 

 

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.