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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
sdhn
Responsive Resident
Responsive Resident

numerator and denominator

Hello All,

 

In a table  "DH001" , I have a Column called "MName".

 Values in the column are as:

 

Column: "MName"

------- Human_Visit

------- BOT_Visit

-------Standard_Request_Caching

-------Total Request 

 

I want to calculate % as below:

Standard_Request_Caching/Total Request 

 

Help will be appreciated.  Thanks 

 

1 ACCEPTED SOLUTION

Hi @sdhn ,

 

Then modify the DAX as follows:

prop = 
var t1 = CALCULATE(SUM(DH001[MValue]), DH001[MName] = "Standard_Request_Caching")
var t2 = CALCULATE(SUM(DH001[MValue]), DH001[MName] = "Total Request")
RETURN
t1/t2

Thanks,

Pragati

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

View solution in original post

4 REPLIES 4
Pragati11
Super User
Super User

Hi @sdhn ,

 

If I understand correctly - "you want proportions based on the count".

You can write a simple DAX measure as follows:

prop = 
var t1 = CALCULATE(COUNT(DH001[MName]), DH001[MName] = "Standard_Request_Caching")
var t2 = CALCULATE(COUNT(DH001[MName]), DH001[MName] = "Total Request")
RETURN
t1/t2

 Then convert this measure to a "percentage" using following option in Power BI from top ribbon:

Click on your measure, then on the top ribbon choose "%" icon.

Pragati11_0-1639495690112.png

Thanks,

Pragati

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

sdhn
Responsive Resident
Responsive Resident

Actually i have already counts in other column as:

Column: "MName", --------------- "MValue"

------- Human_Visit,----------------345000

------- BOT_Visit,-------------------12000

-------Standard_Request_Caching, 4500

-------Total Request ,---------------4000

 

Hi @sdhn ,

 

Then modify the DAX as follows:

prop = 
var t1 = CALCULATE(SUM(DH001[MValue]), DH001[MName] = "Standard_Request_Caching")
var t2 = CALCULATE(SUM(DH001[MValue]), DH001[MName] = "Total Request")
RETURN
t1/t2

Thanks,

Pragati

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

Anonymous
Not applicable

can you show a screenshot of the column?

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors