Forum Discussion
Need help with a measure
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?
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 ago
Resolver 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 ago
Post 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