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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

Find out what's new and trending in the Fabric community.