The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
Hi everyone,
I am trying to understand the function for cumulative total, I am using this function :
Sales cumulate = calculate(
SUM(Table[Sales]);
Filter(ALL(DimDate);
DimDate[Date]<=MAX(DimDate[Date])))
I am trying to understand the filter so I tried with datesInPeriod something like :
Sales cumulate = calculate(
SUM(Table[Sales]);
DATESINPERIOD(DimDate[Date];MAX(DimDate[Date]);-12;MONTH))
It was working good, I had a cumulative sum, but when I try with datesbetween :
Sales cumulate = calculate(
SUM(Table[Sales]);
DATESBETWEEN(DimDate[Date];MIN(DimDate[Date]);MAX(DimDate[Date])))
The sum is not cumulative with datesbetween, it's like a sum(Table[Sales]) function.
Do you know why ?
Thank you ! 🙂
Regards,
Lovebo
User | Count |
---|---|
16 | |
8 | |
7 | |
6 | |
6 |
User | Count |
---|---|
26 | |
13 | |
12 | |
8 | |
8 |