Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
hjansen1976
New Member

calculate CO2

Morning, 

 

Maybe one of you experts could help me out with the following 

 

I have  the following table and would like to calculate the following

Table: 

Field0    field 1   field 2 field 3

1             xyz        200     1.000

2             xyz        300     1.000     

3             xxx        400        500

4             yyy       200        200

5             yyy       100        200

6             abc       150       300

7             bbb      150       300

 

The derised outcome/matrix: 

        field 1     field3

        xyz         1000

        xxx          500

        yyy          200

        abc         300

        bbb        300

Total              2300

So only show field 1 the unique values ( so no doubles) and field 3 the value that belongs to that unique value. And very important a total field for field 3. 

 

Your help is greatly appreciated! 

 

 

1 ACCEPTED SOLUTION
Samarth_18
Community Champion
Community Champion

Hi @hjansen1976 ,

 

You can create a new table with below code:-

 

Table 2 = SUMMARIZE('Table','Table'[field 1],'Table'[field 3])

 

Output:-

Samarth_18_0-1641977025622.png

 

Thanks,

Samarth

Best Regards,
Samarth

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin

View solution in original post

2 REPLIES 2
Samarth_18
Community Champion
Community Champion

Hi @hjansen1976 ,

 

You can create a new table with below code:-

 

Table 2 = SUMMARIZE('Table','Table'[field 1],'Table'[field 3])

 

Output:-

Samarth_18_0-1641977025622.png

 

Thanks,

Samarth

Best Regards,
Samarth

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin

Many thanks for your help!

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.