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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Paridhisharma
Frequent Visitor

Calculate Percentage

 

HI, Below is the data:

a.JPG

 

We are getting incorrect values in visualization as its calculating average of all rows for the month

 

issue1.JPG

 

Expected result:

 

d.JPG

currently we are using the formaula:

 

%TTR = Total Met SLA/Closed Incident SLA

 

please suggest how we can group data on month level. can we apply the formula at visualization level.

1 ACCEPTED SOLUTION
Greg_Deckler
Community Champion
Community Champion

I am willing to be that because you do not have aggregates in your formula that you implemented this as a calculated column? Which means that you must be doing some weird sum or average in your visual? If you implement your formula as a measure it will work correctly, I checked.

 

Measure 4 = SUM(Incidents[Total Met SLA])/SUM(Incidents[Total Closed])

 

For future reference, please post your sample data in something that can be copied and pasted. Makes it way easier than manually typing it in by hand from an image.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

4 REPLIES 4
Greg_Deckler
Community Champion
Community Champion

I am willing to be that because you do not have aggregates in your formula that you implemented this as a calculated column? Which means that you must be doing some weird sum or average in your visual? If you implement your formula as a measure it will work correctly, I checked.

 

Measure 4 = SUM(Incidents[Total Met SLA])/SUM(Incidents[Total Closed])

 

For future reference, please post your sample data in something that can be copied and pasted. Makes it way easier than manually typing it in by hand from an image.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

HI, 

 

Thankyou for the response. I am not able to create a measure for the above formula. The data is from a Summarized table from another dataset. and Total Met SLA in the formula is also a calculated column. i think thats the reason i am not able to create a measure. 

Hi @Paridhisharma,

 

It's better to share a sample pbix file(with just some sample/mock data) which can reproduce the issue. So that we can better assist on this issue. You can upload it to OneDrive or Dropbox and post the link here. Do mask sensitive data before uploading. Smiley Happy

 

Regards

Anonymous
Not applicable

Hi @Paridhisharma

 

 

Is it possible to post you raw data from which you created the summarized table.  And share the link.

 

Cheers

 

CheenuSing

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.