Quantcast
Channel: Desktop topics
Viewing all articles
Browse latest Browse all 217117

Running total using start and end dates with no date table

$
0
0

Hi

 

I have data that includes an "Activation Date" column and a "Cancellation Date" column. I want a line graph with date on the x axis, showing the total on any given date.

 

I have done this on another .pbix by creating an "All" table and a "Cancelled" table, subtracting the Cancelled from the All and creating a date table to link them together:

 

Running Total = (CALCULATE(DISTINCTCOUNT('All'[Item]), FILTER(ALL('Date'[Date]), 'Date'[Date]<=MAX('Date'[Date]))))-(CALCULATE(CALCULATE(DISTINCTCOUNT('Closed'[Item]), FILTER(ALL('Date'[Date]),'Date'[Date]<=MAX('Date'[Date]))))

 

However, this time I am using Direct Query and cannot create a Date Table.

 

Is there a way to create an equivalent measure without one?

 

Thanks!


Viewing all articles
Browse latest Browse all 217117

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>