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
MattLM
Regular Visitor

Cumulative total with filters

I have a Tabular Model that limits me to just using measures.  I do not have access to change the tabular model.

 

I have a Total Scheduled Visit tabular measure.  This is a count of [CallResultID] if [CallResultID] = 1 or 19  This is filtered by a date slicer on my report.

I have Total Actual Visits.  This is also filtered by the date slicer on the report.

Date Slicer on the report is a Relative Date. 

MattLM_0-1677001019652.png

 

I need to show Canceled Visit as of Today.  This would be Total Scheduled Visits as of today(for current month) minus Total Actual Visits.  I can edit interaction so that this chart isn't filtered by the date slicer if necessary.

Visits get scheduled for the month and they either actually happen or they don't. 

 

Right now, my canceld visits included visits that are in the future that haven't happened yet and I don't want to include those so I need a way to only count scheduled visits from the 1st of the month to the current day and then subtract the actual visits that have happened.

 

2 REPLIES 2
MattLM
Regular Visitor

@amitchandak Thanks for the response.  I will check out your suggestion when I get a chance.  Business has moved on from this need for the time being. 

amitchandak
Super User
Super User

@MattLM , I thnk you need formula similar to

 

Power BI Inventory On Hand
Power BI Inventory On Hand: https://youtu.be/nKbJ9Cpb-Aw

 

 

If this does not help
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

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.

Top Solution Authors