The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
I have below data set
Activity | Fiscal Year | Reporting Amount | Variance |
Activity A | FY20 | 234 | 202 |
FY19 | 32 | ||
Activity B | FY20 | 290 | 267 |
FY19 | 23 |
The value in variance column is differnece between reporting amount of fy20 and fy 19 of each activity. How to populate the column variance in power bi ? what Function can be used ?
@Anonymous
I would use Fill Down in your Activity column in Power Query. Then you could do something like:
FILTER('Table',[Fiscal Year]<EARLIER([Fiscal Year]),[Activity]=EARLIER([Activity])
You likely need an Index column in there as well
User | Count |
---|---|
15 | |
12 | |
7 | |
6 | |
6 |
User | Count |
---|---|
24 | |
20 | |
12 | |
9 | |
7 |