Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and a 50 percent discount on exams.
Get startedEarn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Hello,
I made a db where our printerdata is sent to on a daily basis. 6 properties/OID's are scanned:
I want to add an extra column wich calculates the difference from the last day but for the same printer and OID.
So far i got something like this:
Solved! Go to Solution.
Hi @driesvdb ,
To create a measure as below.
difference = VAR dat = [Date] - 1 VAR pre = CALCULATE ( SUM ( 'Table'[Count] ), FILTER ( 'Table', 'Table'[PrinterID] = EARLIER ( 'Table'[PrinterID] ) && 'Table'[TypecounterID] = EARLIER ( 'Table'[TypecounterID] ) && [Date] = dat ) ) RETURN IF ( pre = BLANK (), BLANK (), 'Table'[Count] - pre )
Hi @driesvdb ,
To create a measure as below.
difference = VAR dat = [Date] - 1 VAR pre = CALCULATE ( SUM ( 'Table'[Count] ), FILTER ( 'Table', 'Table'[PrinterID] = EARLIER ( 'Table'[PrinterID] ) && 'Table'[TypecounterID] = EARLIER ( 'Table'[TypecounterID] ) && [Date] = dat ) ) RETURN IF ( pre = BLANK (), BLANK (), 'Table'[Count] - pre )
When I enter the lines the collumn is still empty, no calculation seems te be done.
In the link below is the .pbix file ( I don't have enough rights to upload it directly )