Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Aggregate values by a distinct identifier in Power BI using DAX

Here my table:
enter image description here

When I create a summed table by group_no I have below table in Power BI:

enter image description here

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

However, this is what I would like to have:

enter image description here

So, what I would like to get is total revenue by unique project_no on Groups (group_no).

>Solution :

Here you go:

enter image description here

aggregated_revenue = 
VAR tbl = SUMMARIZE('Table', 'Table'[project_no], 'Table'[revenue])
RETURN SUMX(tbl, 'Table'[revenue] )
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading