Forum Discussion
UKNSI-Powerbi
3 years agoFrequent Visitor
Row level variance
At the moment I have a table of customer cumulations grouped by Cust/Seq/Contract/Part/Date/Release/YYYYMM Cust Seq Contract Part Date Release Rev YYYYMM CUMULATION CUST1 1 0...
- 3 years ago
you may try to add a calculated column like this:
Variance2 = VAR _date = [Date] VAR _cumpre = CALCULATE( SUM(TableName[CUMULATION]), ALLEXCEPT(TableName, TableName[Cust], TableName[Seq], TableName[Contract], TableName[Part], TableName[YYYYMM]), TableName[Date] = _date-1 ) RETURN DIVIDE( [CUMULATION] - _cumpre, _cumpre)tried and it worked like this:
amitchandak
3 years agoSuper User
UKNSI-Powerbi , Create a date table join with your date
and have measure like
This Day = CALCULATE(sum('Table'[Qty]))
This Day = CALCULATE(sum('Table'[Qty]), FILTER(ALL('Date'),'Date'[Date]=max('Date'[Date])))
Last Day = CALCULATE(sum('Table'[Qty]), FILTER(ALL('Date'),'Date'[Date]=max('Date'[Date])-1))
Last Day = CALCULATE(sum('Table'[Qty]), previousday('Date'[Date]))
and take a diff
Day Intelligence - Last day, last non continous day
https://medium.com/@amitchandak.1978/power-bi-day-intelligence-questions-time-intelligence-5-5-5c3243d1f9