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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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