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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Srinivas3350
Helper II
Helper II

Calculation

I am having these columns can anyone help me in DAX that needs to calculate value for Ink and solvent sepratley so the table sholud look like in columns years and in rows INk & Solvent and values the GBP i dont need those ink & solvent litres

Srinivas3350_0-1689089938101.png

Thanks 

Srinivas

2 ACCEPTED SOLUTIONS
Anonymous
Not applicable

Hi @Srinivas3350 ,

 

We can create measures.

Ink GBP Value = 
SUMX(
    FILTER('Table', 'Table'[fin_year] = MAX('Table'[fin_year])),
   'Table'[ink_litres]*'Table'[GBP_Value]
)
Solvent GBP Value = 
SUMX(
    FILTER('Table', 'Table'[fin_year] = MAX('Table'[fin_year])),
    'Table'[solvent_lires]*'Table'[GBP_Value]
)

vtangjiemsft_0-1689215432650.png

If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. Thank you.

 

Best Regards,

Neeko Tang

If this post  helps, then please consider Accept it as the solution  to help the other members find it more quickly. 

 

View solution in original post

Anonymous
Not applicable

Hi @Srinivas3350 ,

 

We can create measures.

Total Litres = 
SUM(YourTableName[ink_litres]) + SUM(YourTableName[solvent_litres])
Ink GBP Value = 
SUM(YourTableName[ink_litres]) / [Total Litres] * SUM(YourTableName[GBP_Value])
Solvent GBP Value = 
SUM(YourTableName[solvent_litres]) / [Total Litres] * SUM(YourTableName[GBP_Value])

If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. Thank you.

 

Best Regards,

Neeko Tang

If this post  helps, then please consider Accept it as the solution  to help the other members find it more quickly. 

 

View solution in original post

5 REPLIES 5
Anonymous
Not applicable

Hi @Srinivas3350 ,

 

We can create measures.

Ink GBP Value = 
SUMX(
    FILTER('Table', 'Table'[fin_year] = MAX('Table'[fin_year])),
   'Table'[ink_litres]*'Table'[GBP_Value]
)
Solvent GBP Value = 
SUMX(
    FILTER('Table', 'Table'[fin_year] = MAX('Table'[fin_year])),
    'Table'[solvent_lires]*'Table'[GBP_Value]
)

vtangjiemsft_0-1689215432650.png

If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. Thank you.

 

Best Regards,

Neeko Tang

If this post  helps, then please consider Accept it as the solution  to help the other members find it more quickly. 

 

when I am doing * it is showing large value. if in a row i am having 5L of ink and Solvent that is the GBP Value for both in that row if i am multiplying it is showing huge value. let me give you an example

ink- 5L & Sol 5L GBP for both is 100 its is calculating 10*100 = 1000

Anonymous
Not applicable

Hi @Srinivas3350 ,

 

We can create measures.

Total Litres = 
SUM(YourTableName[ink_litres]) + SUM(YourTableName[solvent_litres])
Ink GBP Value = 
SUM(YourTableName[ink_litres]) / [Total Litres] * SUM(YourTableName[GBP_Value])
Solvent GBP Value = 
SUM(YourTableName[solvent_litres]) / [Total Litres] * SUM(YourTableName[GBP_Value])

If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. Thank you.

 

Best Regards,

Neeko Tang

If this post  helps, then please consider Accept it as the solution  to help the other members find it more quickly. 

 

This is working thank you

I think I need your help how to share a file in this chat

 

 

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.