Hi All,
When selecet Fiscal Week filter, how to caculate corresponding Fiscal Month(FM) KPI ? (please see attached image)
I had correct DAX for PreviousFM KPI ( all numbers match with DB):
But I cant get "FM KPI" correct, tried the following ways, but all caculated results don't match with DB:
@Anonymous , Try like
FM KPI =
VAR currentmonth = MAXX(allselected(vw_Reporting),vw_Reporting[Month Slno])
VAR FM KPI= CALCULATE([SAT%], ALL(vw_ReportingData[Fiscal Week]),vw_Reporting[Month Slno]=currentmonth)
RETURN FM KPI
FM KPI= CALCULATE([SAT%], ALL(vw_Reporting[Fiscal Week]), FILTER(vw_Reporting, vw_Reporting[Month Slno]=currentmonth))
FM KPI =
VAR currentmonth = MAXX(allselected(vw_Reporting),vw_Reporting[Month Slno])
VAR FM KPI= CALCULATE([SAT%], ALL(vw_ReportingData[Fiscal Week]),vw_Reporting[Month Slno]=currentmonth)
RETURN FM KPI
FM KPI= CALCULATE([SAT%], ALL(vw_Reporting[Fiscal Week]), FILTER(vw_Reporting, vw_Reporting[Month Slno]=Max(vw_Reporting[Month Slno])))
Hi amitchandak
Thanks for your reply!
I tried your DAX, it didn't work out. Please see enclosed images:
Have a question for you. In your DAX, you created a Variable "VAR FM KPI", but in your caculation(FM KPI= CALCULATE([SAT%], ALL(vw_Reporting[Fiscal Week]), FILTER(vw_Reporting, vw_Reporting[Month Slno]=Max(vw_Reporting[Month Slno]))) you didn't use this the variable which you created. Why?
Thanks again for your reply.
Sorry, I typed wrong in "FM KPI" DAX, correct one should be:
Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!