March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Some details about my model
My issue
This is a sample of my logic... using the Dim_Date table.. but I have tried numerous iterations of what to use for the MAX date comparison.
using ALL vs ALLSELECTED does not have any effect/impact
If I change the ALLSELECTED to the following, it returns an error. The error is tied to a calculated column in the same table. I do not have access to the logic of the calculated column... i can only query the Power BI dataset
this measure DOES calculate a running cimulative sum. It is using the same common date table...
this measure does not calculate a running cumulative sum. It is using the common date table...
my common date table is "dim_Date" and is used above
i need to track the 2 running/cumulative totals independently. My desired outcome is for the last row (12/31/2023) to show the total for each column in a single visual.
The final row in the table (excluding the visual's Total row) would read...
Date_EoM : 12-31-2023
Actual Running Total: $13,327,500.43
Total Investment LE: $15,058.871.00
...
As illustrated in the screenshot in initial posting, I am able to get one or the other to appear correctly depending on which Date column is select for the visual
Thank you for the reply... as added info, this is my data model as it relates to this issue. I have created a commone dim_Date table between the imported Spreadsheet and the DirectQuery to a published Power BI dataset.
@ColinG , All measures and visual,s and slicers should use a common date table
Total Investment LE = CALCULATE(
SUM(Import_Table2[Amount]),
Filter(Import_Table2,
Import_Table2[Data Type]="LE")
, FILTER(
ALLSELECTED('Date')
'Date'[Date] <= MAX('Date'[Date])
)
as per need use all in place of allselected
)
@ColinG , using a common date table in live/direct query model, I am able to create a cumulative measure along with data from excel
Combined = CALCULATE([Net] + SUM(Purchase[Purchase_amount]), WINDOW(0,ABS,0,REL,all('Date'[Date]), ORDERBY('Date'[Date])))
//Only SUM(Purchase[Purchase_amount]) is from import mode. Rest from Direct query Dataset
Live model
Excel join with live/direct date table
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
125 | |
84 | |
67 | |
54 | |
43 |
User | Count |
---|---|
203 | |
106 | |
98 | |
65 | |
56 |