Forum Discussion
nhol
Advocate II
8 years agoCompare and alert when data got changed
Hi, I need a solution for the following query: I have a daily dataset that on a regular basis don't change at all, however when the percentage of "CapitalPercent" between days are changing I ...
v-jiascu-msft
Microsoft Employee
8 years agoHi nhol,
Maybe you can try something like this: adding an arrow when the data changes.
If you want the exact formula, please provide your pbix file or a sample.
Measure 2 =
VAR lastdayQuantity =
CALCULATE (
SUM ( FactSales[SalesQuantity] ),
PREVIOUSDAY ( 'DimDate'[Datekey] )
)
VAR sumQuantity =
SUM ( FactSales[SalesQuantity] )
RETURN
IF (
lastdayQuantity > sumQuantity,
CONCATENATE ( sumQuantity, UNICHAR ( 9660 ) ),
IF (
lastdayQuantity = sumQuantity,
sumQuantity,
CONCATENATE ( sumQuantity, UNICHAR ( 9650 ) )
)
)
Best Regards,
Dale
nhol
Advocate II
8 years agoHi Dale and thanks for your assistance.
This worked just fine until I realized I don't have sequential dates as you can see from the picture attached (marked in yellow).
The other challenge I'm having is that I'm using DirectQuery mode so any option of using a calculated column on the fly won't work here.
Thanks!
NH