Forum Discussion
Need help with a measure
McCow wrote:A simplest way without complicate calculation is separate measure + Card visualisation. Totals in the table must be OFF.
What do you mean by the above, also I added a screenshot to my previous comment^^
Shamatix all of your data has different values. whats must happen, if strings (records) with same seriennummer (Løbenummer) contains different VAT-values (Momsgrundlag)? Must be blank? And if same SN and same VAT-value must be printed (calculated as average value)? Correct?
- Shamatix8 years agoPost Partisan
McCow wrote:Shamatix all of your data has different values. whats must happen, if strings (records) with same seriennummer (Løbenummer) contains different VAT-values (Momsgrundlag)? Must be blank? And if same SN and same VAT-value must be printed (calculated as average value)? Correct?
Exactly!:)
- McCow8 years agoResolver III
try this and let me know pls if it work correct or no on yours data:
MomsGrundlag 2 = IF(CALCULATE(COUNTROWS('Indfortoldning');ALLEXCEPT('Indfortoldning';Indfortoldning[Løbenummer]))<2 || AVERAGEX('Indfortoldning';Indfortoldning[Moms grundlag]) <> MEDIANX('Indfortoldning';Indfortoldning[Moms grundlag]); AVERAGE(Indfortoldning[Moms grundlag]); BLANK() )//if- Shamatix8 years agoPost Partisan
McCow wrote:try this and let me know pls if it work correct or no on yours data:
MomsGrundlag 2 = IF(CALCULATE(COUNTROWS('Indfortoldning');ALLEXCEPT('Indfortoldning';Indfortoldning[Løbenummer]))<2 || AVERAGEX('Indfortoldning';Indfortoldning[Moms grundlag]) <> MEDIANX('Indfortoldning';Indfortoldning[Moms grundlag]); AVERAGE(Indfortoldning[Moms grundlag]); BLANK() )//ifThanks a ton for the help, almost there:
https://i.imgur.com/FVnYWXK.png
As you see on the above picture, it makes this one blank, eventho the momsgrundlag (vatamount) is the same