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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
JawaharPrem6
Helper I
Helper I

% Calculation

Hi All,

Need to calculate % like method as mentioned below,  in measure

JawaharPrem6_0-1732532915278.png

 

 

Thanks

Jawahar

2 ACCEPTED SOLUTIONS

@JawaharPrem6 , Use the below DAX and format it as percentage

Percentage = 
var num = COUNT(EU_Data[TAT])
var den = CALCULATE(COUNT(EU_Data[TAT]),ALL(EU_Data))
RETURN
DIVIDE(num,den,0)

 

Did I answer your question ? Please mark my post as a solution.

 

Thanks,

Jai




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





View solution in original post

Hi Jai,

thank you its works..

View solution in original post

8 REPLIES 8
Jai-Rathinavel
Super User
Super User

@JawaharPrem6 Create a measure and format it as percentage like below

 

JaiRathinavel_1-1732533857017.png

 

Percentage = 
var num = SUM(YourTable[Count])
var den = CALCULATE(SUM(YourTable[Count]),ALL(YourTable))
RETURN
DIVIDE(num,den,0)

 

Did I answer your question ? Please mark my post as a solution.

 

Thanks,

Jai




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Hi Jai,

Thanks for yout time, i worked on your provided dax but iam getting error..

 

JawaharPrem6_0-1732534366615.png

Thanks Jawahar

Of course, you cannot sum a text column. You can count the rows instead. Use COUNTROWS(EU_data)





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

@JawaharPrem6 , Use the below DAX and format it as percentage

Percentage = 
var num = COUNT(EU_Data[TAT])
var den = CALCULATE(COUNT(EU_Data[TAT]),ALL(EU_Data))
RETURN
DIVIDE(num,den,0)

 

Did I answer your question ? Please mark my post as a solution.

 

Thanks,

Jai




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Hi Jai,

thank you its works..

danextian
Super User
Super User

Hi @JawaharPrem6 

 

here's a sample measure based on the data provided.

DIVIDE (
    [count measure],
    CALCULATE ( [count measure], ALL ( 'table'[tat column] ) )
)

 

If this doesn't resolve your issue, please provide more context,  and a workable sample data (not an image). Please refer to this post - https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

Hi,

thanks for your time, i used the mentioned dax but iam getting this error.

 

JawaharPrem6_1-1732534513718.png

 

It's my first time seeing not being able to use % in a measure name. Have you tried renaming it?

 

danextian_0-1732535186387.png

 





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.