Forum Discussion
Relative reference with measure
Hello,
There have been many requests for my actual data set which I am not sure is necessary. This is a process driven question. Within Excel there is the option to use the cell reference which can alter a calculation. I am wondering if there is any way to do this in Power BI.
https://edu.gcfglobal.org/en/excelformulas/relative-and-absolute-cell-references/1/
- v-lili6-msft6 years agoCommunity Support
hi Anonymous
Yes, you could get it, you could use ALLxxx function to clear the row context and add the fixed conditions in the formula.
If you still have the problem, please share the sample pbix file and your expected output.
Regards,
Lin
- Anonymous6 years agoNot applicable
Thanks v-lili6-msft
Unfortunately I may not be fully understanding. I tried to follow the link you sent and was unsuccessful in getting the measure to function as expected.
My original formula is below and I have to manually update the Fiscal Period every month.
Selected HC VTF = if(HASONEFILTER('Z-Fiscal_Time'[Fiscal Period]),calculate(sum(EID_Table[Forecast People]),EID_Table[Staffing Type Category]="Regular"),calculate(sum(EID_Table[Forecast People]),EID_Table[Staffing Type Category]="Regular",'Z-Fiscal_Time'[Fiscal Period]="P11 - FY20")) -if(HASONEFILTER('Z-Fiscal_Time'[Fiscal Period]),calculate(sum(EID_Table[Actual People]),EID_Table[Staffing Type Category]="Regular"),calculate(sum(EID_Table[Actual People]),EID_Table[Staffing Type Category]="Regular",'Z-Fiscal_Time'[Fiscal Period]="P11 - FY20"))I have created a related table that I would like to be able to slice on instead of having to update the measure. With those details are you able to let me know of a way to replace the Fiscal Period?Thanks!- v-lili6-msft6 years agoCommunity Support
hi Anonymous
Please share your sample pbix file and your expected output, that will be a great help.
Regards,
Lin