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
DevM01
Helper I
Helper I

Doing calculation for the Value of a chart

I am trying to show the percentage and number of approved and rejected requests. However, each request I have consists of 4 records, so when I see the numbe of requests approved vs rejected in my chart I see: 16 approved vs 12 rejected, when in fact they're 4 approved and 3 rejected. I was looking at "New quick measure" to try and change the value to be current count / 4, but it's not letting me divide by a number. 

 

How can I do that so the chart accepts the value of a column / 4? 

 

2 REPLIES 2
v-shex-msft
Community Support
Community Support

Hi @DevM01,

Please share some dummy data with raw table structure to help us clarify your data structure and do testing coding formula on it.

How to Get Your Question Answered Quickly 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
ryan_mayu
Super User
Super User

@DevM01 

1.PNG

you can create two measures

count of apporve = CALCULATE(COUNTROWS('Table'),FILTER('Table','Table'[record]="approved"))/4
count of reject = CALCULATE(COUNTROWS('Table'),FILTER('Table','Table'[record]="rejected"))/4

2.PNG

 





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

Proud to be a Super User!




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.