Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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 )
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
110 | |
96 | |
77 | |
63 | |
55 |
User | Count |
---|---|
143 | |
109 | |
89 | |
84 | |
66 |