Forum Discussion
sixtoquiles
9 years agoHelper II
Help with this...
HI Everyone.... I have this table in my PowerBI (am using direct query) the original table is much bigger, this just a sample, And i need to create a measure to: How many Custome...
- 9 years ago
Ooops,
I cut and paste the wrong measure in
Please try this
Measure2 = IF( HASONEVALUE( 'Table1'[Target] ), MAX(Table1[Target]), SUMX( SUMMARIZE( 'Table1',Table1[Date],Table1[District], "Max Per Day",MAX('Table1'[Target])),[Max Per Day]) ) - 9 years ago
Oh yeah, that's not ideal
Please try this slight tweak :)
Measure2 = IF( ISFILTERED( 'Table1'[Target] ), MAX(Table1[Target]), SUMX( SUMMARIZE( 'Table1',Table1[Date],Table1[District], "Max Per Day",MAX('Table1'[Target])),[Max Per Day]) )
Phil_Seamark
9 years agoMicrosoft Employee
Sorry it took so long :)
sixtoquiles
9 years agoHelper II
Now and going to study each part to know exactly what's doing the formula, i never imagine use max...
Thanks * 1K =many, many thanks...