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
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
Solution Sage
Solution Sage

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

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
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.