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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.