Forum Discussion
Pacing %
- Anonymous1 year ago
danextian Thanks for trying here but I got the desired output after doing few tweeks in my measures.
The desired result is exactly the same numbers which are there on the Pipegen pacing page but I wanted the Pacing % to get filter on some specific dimensions like BU/SVP/RVP.
Below is the correct and desired result:
You actually pointed me to the right direction where I was using ALLSELECTED instead of ALL operation and that somehow corrected my measures.
The measures I used which got the desired result:- New_SQO_Actuals =
VAR _Today = [Today]VAR _SUM1 =CALCULATE (SUM ( F_SQO_FLM_TARGETS[SQO_ACTUALS_DAILY] ),FILTER (ALL ( F_SQO_FLM_TARGETS[Last Day of Week_F] ),[Last Day of Week_F] <= MAX ( F_SQO_FLM_TARGETS[Last Day of Week_F] )))VAR _SUM2 =CALCULATE (SUM ( F_SQO_FLM_TARGETS[SQO_ACTUALS_DAILY] ),FILTER ( ALL ( F_SQO_FLM_TARGETS ), F_SQO_FLM_TARGETS[FULL_DATE] <= _Today ))RETURNIF ( _Today >= MAX ( F_SQO_FLM_TARGETS[Last Day of Week_F] ), _SUM1, BLANK () )- New_SQO_Targets =
VAR _Today = [Today]VAR _SUM1 =CALCULATE (SUM ( F_SQO_FLM_TARGETS[SQO_TARGET_DAILY] ),FILTER (ALL ( F_SQO_FLM_TARGETS[Last Day of Week_F] ),[Last Day of Week_F] <= MAX ( F_SQO_FLM_TARGETS[Last Day of Week_F] )))VAR _SUM2 =CALCULATE (SUM ( F_SQO_FLM_TARGETS[SQO_TARGET_DAILY] ),FILTER ( ALL ( F_SQO_FLM_TARGETS ), F_SQO_FLM_TARGETS[FULL_DATE] <= _Today ))RETURNIF ( _Today >= MAX ( F_SQO_FLM_TARGETS[Last Day of Week_F] ), _SUM1, BLANK () )- New_SQO_Pacing = DIVIDE([New_SQO_Actuals],[New_SQO_Targets],0)
It will not help to just say it is not giving the correct output. Please provide the expected result and the reasoning behind.
danextian Thanks for trying here but I got the desired output after doing few tweeks in my measures.
The desired result is exactly the same numbers which are there on the Pipegen pacing page but I wanted the Pacing % to get filter on some specific dimensions like BU/SVP/RVP.
Below is the correct and desired result:
You actually pointed me to the right direction where I was using ALLSELECTED instead of ALL operation and that somehow corrected my measures.
The measures I used which got the desired result:
- New_SQO_Actuals =
- New_SQO_Targets =
- New_SQO_Pacing = DIVIDE([New_SQO_Actuals],[New_SQO_Targets],0)