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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Anonymous
Not applicable

How to show quantity drop off for expiries

I feel like I am missing something really obvious here.

 

I have two tables, one is a date table and one is some maintenance contract expiration data from our purchasing system.

 

I am simply trying to create a visualisation which will show a horizontal line with the total items and then where that drops off when there is an expiry, so basically the report should drop down over time.

 

Supplier   Maint End Date    Qty    
A13/03/20235
A19/06/202310
A10/10/20235

 

Basically I just want to show a line chart that up until March 2023 the total would be 20, then from April 2023, the total is 15, then from July the total is 5.

 

There is a relationship between Date in the Date table and Maint End Date in the Expiries table.

I have tried a measure that was the sum of the quantity, filtered agains the end date where it was >= the date in the date table but I am just getting a horizontal line that doesn't drop off.

As I said I think this should be simple but I am just not getting it.

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous , You can create a date table and do not create a join then you can try a measure like

 

measure =

calculate(Sum(Table[Qty]) , Filter(Table, Table[Main End Date] <= MAx('Date'[Date]))

 

or

 

 

measure =

35- calculate(Sum(Table[Qty]) , Filter(Table, Table[Main End Date] <= MAx('Date'[Date]))

 

 

Date from date table should be in visual, if you need trend

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@Anonymous , You can create a date table and do not create a join then you can try a measure like

 

measure =

calculate(Sum(Table[Qty]) , Filter(Table, Table[Main End Date] <= MAx('Date'[Date]))

 

or

 

 

measure =

35- calculate(Sum(Table[Qty]) , Filter(Table, Table[Main End Date] <= MAx('Date'[Date]))

 

 

Date from date table should be in visual, if you need trend

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here
Anonymous
Not applicable

Thanks for that, I am underway with this now.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.