Forum Discussion

mafioso's avatar
mafioso
Icon for Helper II rankHelper II
8 years ago
Solved

Dynamic measure dependent on slicer selection

I have the following measure:

 

M_Act_FTE_monthly = 
IF(
	ISFILTERED('summary_report'[Time Period]);
	ERROR("Time intelligence quick measures can only be grouped or filtered by the Power BI-provided date hierarchy or primary date column.");
	TOTALMTD(
		SUM('summary_report'[Act_FTE]);
		'summary_report'[Time Period].[Date]
	)
)

 

This one works for all of my ProjTypes. Now, I want to implement this measure for the ProjTypes I selected in the Slicer. This is my slicer:

 

 

Do you have any ideas how to dynamically change the measure above? Any help is appreciated!

  • It should work, which table has column "BU Proj Type"? Are there multiple tables? What is the relation between those tables?

4 Replies

  • It should work, which table has column "BU Proj Type"? Are there multiple tables? What is the relation between those tables?

    • mafioso's avatar
      mafioso
      Icon for Helper II rankHelper II

      parry2k BU ProjType is a field in my dataset summary_report. So it's in the same table as the fields used in the measure. 

  • Hi mafioso

     

    Are you trying to create a measure that, for example, switches from sold qty to sum of sales to total profit? If this is not what you mean, please be speficifc with  the kind of dynamic measure that you want and post a sample data too.

    • mafioso's avatar
      mafioso
      Icon for Helper II rankHelper II

      Thanks guys, now I fixed it. Had a problem with the synchronization of my slicer now it works.