Forum Discussion
BaldAccountant
3 years agoHelper III
Power pivot - Dynamic Measure
I am tyring to create a dynamic measure based on a post on another website in power pivot. There are two elements: -a table that creates dynamic choice of row values (i.e. parse out by insurance ty...
- 3 years ago
BaldAccountant
I've changed the data model relaying more on DAX. Please refer to attached sample file.= VAR FilterTable = FILTER ( Data, CONTAINS ( VALUES ( Groups[Group Values] ), Groups[Group Values], Data[FC] ) || CONTAINS ( VALUES ( Groups[Group Values] ), Groups[Group Values], Data[Specialty] ) ) RETURN SWITCH ( MIN ( Multi[MSR Number] ), 1, DIVIDE ( CALCULATE ( [Cases], FilterTable ), [Cases] ), 2, DIVIDE ( CALCULATE ( [Charges], FilterTable ), [Charges] ) )
BaldAccountant
3 years agoHelper III
There are relationships betwen the tables, but 1-3 are correct
There are intermediary tables between the Groups FinClass column and Data2 via an intermediary table and between the Groups Specialty column and the Data2 via another intermediary table