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 August 31st. Request your voucher.
I need help in creating a DAX that changes once we have both the numerator and denominator for a Month.
Reconciliation Factor April = Numerator/Denominator;
So for May; I want the Reconciliation Fatcor to change once I update Numerator and Denominator as the current Reconciliation Factor.
so this is the DAX i use at the moment:
Month | A | B | RF (%) |
Jan-2023 | 20000 | 15000 | 75% |
Feb-2023 | 30000 | 10000 | 33% |
Mar-2023 | 25000 | 15000 | 60% |
Apr-2023 | 15000 | 10000 | 67% |
How can I modify this DAX so at any filter it shows the latest RF? that is if values (A&B) are entered for May-2023, it automatically shows the latest RF.
Latest_RF = CALCULATE('RF Dashboard'[RF_DEF],'Date'[Year]=2023 && 'Date'[Month]="Apr-2023")
How can I dynamically create the variable for last month that changes with time?
Before you calculate Latest_RF you add a step to assign a variable to the latest month with data. Then use that variable in your CALCULATE filters.
User | Count |
---|---|
11 | |
8 | |
6 | |
6 | |
6 |
User | Count |
---|---|
23 | |
14 | |
13 | |
10 | |
8 |