Forum Discussion
Julia2023
1 year agoHelper I
Ideas for Measure
Hi everyone, I'm looking for some ideas. I have a measure called "Position," and I need to create a measure called "GOAL" (which should be the sum of "Position" but with a total of 100%). The current...
danextian
1 year agoSuper User
Hi Julia2023
This measure below creates a virtual summary table by product id containing a column called @position which returns a value if [goal] is equal to 1.
SUMX (
ADDCOLUMNS (
SUMMARIZE ( 'table', 'table'[product id] ),
"@position", IF ( [goal] = 1, [position] )
),
[@position]
)