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
Happy lockdowning Forum,
I have a matrix with info:
1. A list of 25 deliverables with random plan dates and random dates they were submitted
2. I created (head) columns by "starting-date" week. All random dates are grouped in those weeks
3. To measure the missed items i created measure
Solved! Go to Solution.
Sorry, I fooled myself.
failed 2 =
SUMX (
VALUES ( 'Date Calendar'[Week start] ),
IF (
'Date Calendar'[Week start]
< TODAY () - WEEKDAY ( TODAY (), 2 ) + 1,
CALCULATE(SUM ( 'plan date'[plan sum] ) - SUM ( 'submission date'[sub sum] )),
BLANK ()
)
)
Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast - Power BI Tutorials
Hi @Mike_Mace ,
try this
failed =
IF(MAX('Date Calendar'[Week start]) < TODAY() - WEEKDAY(TODAY(),2) +1,
SUM('plan date'[plan sum])-Sum('submission date'[sub sum]), BLANK())
Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast - Power BI Tutorials
Hi @mwegener
That works well, it stops subtraction before running week thanks.
Although it doesnt give Grand Totals for this measure. Any idea why? (named "failed 2" on snip below)
Hi @Mike_Mace ,
because the total does not filter to the start of the week.
Try this.
failed =
SUMX (
VALUES ( 'Date Calendar'[Week start] ),
IF (
MAX ( 'Date Calendar'[Week start] )
< TODAY () - WEEKDAY ( TODAY (), 2 ) + 1,
SUM ( 'plan date'[plan sum] ) - SUM ( 'submission date'[sub sum] ),
BLANK ()
)
)
Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast - Power BI Tutorials
Hi @mwegener
It looks like new "failed 3" has same results as "failed 2". I gave them a different highlight on the snip to read with ease. Still no row/grand totals
Is there a way around this or do i need to rethink model structure?
Sorry, I fooled myself.
failed 2 =
SUMX (
VALUES ( 'Date Calendar'[Week start] ),
IF (
'Date Calendar'[Week start]
< TODAY () - WEEKDAY ( TODAY (), 2 ) + 1,
CALCULATE(SUM ( 'plan date'[plan sum] ) - SUM ( 'submission date'[sub sum] )),
BLANK ()
)
)
Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast - Power BI Tutorials
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
123 | |
85 | |
85 | |
70 | |
51 |
User | Count |
---|---|
205 | |
153 | |
97 | |
79 | |
69 |