Forum Discussion
Computation per Unit
- Anonymous4 years ago
Hi icdns ,
Please refer to my pbix file to see fi it helps you.
Create a measure or column.
Measure = VAR max_value = CALCULATE ( MAX ( sampledata[Sales] ), ALLEXCEPT ( sampledata, sampledata[Year] ) ) RETURN DIVIDE ( MAX ( sampledata[Sales] ), max_value )The column.
Column = VAR max_value = MAX ( sampledata[Sales] ) RETURN DIVIDE ( sampledata[Sales], max_value )If I have misunderstood your meaning, please provide your desired output with more details.
Best Regards
Community Support Team _ Polly
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
In that case, you need to use removefter Dax formula or you can define a variable and find the max with my previous formula and use allexcept(table,table[year]).
can you share a sample of your data or your PBIX file.
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
LinkedIn: www.linkedin.com/in/vahid-dm/
Hi @VahidDM ,
You can access this sample pbix here. https://www.mediafire.com/file/0pbtogvc6kib02k/sample_powerbi.pbix/file
Thank you very much for your help!