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! Request now

Reply
sraj
Responsive Resident
Responsive Resident

Measure for subtraction of values from the same column

sraj_0-1596029526848.png

Need to find the MEETINGS LEFT number, please advise.

 

 

I had to filter INPROGRESS as below to get the count

‘Q’ & ‘R’ = IN PROGRESS

 

sraj_1-1596029526851.png

 

 

Same with Checked IN to get the count

I & F = CHECKED IN

 

Now I need the MEETINGS LEFT which is the subtraction between INPROGRESS & CHECKED IN…this makes me feel like I have to create a new measure for the MEETINGS left also for Today, I have a hearing date available to filter that.  Can someone please advise on this?

 

1 ACCEPTED SOLUTION

Hi @sraj,

 

Ah you want to count the rows

 

In Progress = Calculate(countrows('table'), 'table'[queue_cat] in {"Q","R"})
Checked In = Calculate(countrows('table'), 'table'[queue_cat] in {"I","F"})
Meetings Left = [In Progress] - [Checked In]


I hope this helps,
Richard

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

Proud to be a Super User!


View solution in original post

9 REPLIES 9
richbenmintz
Resident Rockstar
Resident Rockstar

Hi @sraj 

 

I would probably create three measures:

 

In Progress = Calculate(sum('table'[foo]), 'table'[queue_cat] in {"Q","R"})
Checked In = Calculate(sum('table'[foo]), 'table'[queue_cat] in {"I","F"})
Meetings Left = [In Progress] - [Checked In]


I hope this helps,
Richard

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

Proud to be a Super User!


sraj
Responsive Resident
Responsive Resident

@richbenmintz  - may be I didnt ask the right question...the Q,I,R,F 'queue_cat' exists on this same column called 'queue_cat'.  So all I have is one column not two different ones.  I hope this makes sense, please advise.

 

 

Hi @sraj,

 

Ah you want to count the rows

 

In Progress = Calculate(countrows('table'), 'table'[queue_cat] in {"Q","R"})
Checked In = Calculate(countrows('table'), 'table'[queue_cat] in {"I","F"})
Meetings Left = [In Progress] - [Checked In]


I hope this helps,
Richard

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

Proud to be a Super User!


sraj
Responsive Resident
Responsive Resident

@richbenmintz  Thank you!!

@sraj,

 

No Problem, happy to help



I hope this helps,
Richard

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

Proud to be a Super User!


sraj
Responsive Resident
Responsive Resident

@richbenmintz ok, will that....what does "foo" in your measure mean?

Hi @sraj,

 

just a place holder, i do not know the actual column name you are trying to sum.



I hope this helps,
Richard

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

Proud to be a Super User!


amitchandak
Super User
Super User

@sraj , You need to create measure for that, with those filter inside the measure

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
sraj
Responsive Resident
Responsive Resident

@amitchandak I understand, need help to create a new measure as the Q, I, R, F all exists on the same column called queue_cat.  I am new to this and never done it before, can you please help.

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