The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
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
Thanks
Srinivas
Solved! Go to Solution.
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]
)
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.
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.
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]
)
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
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
User | Count |
---|---|
26 | |
10 | |
8 | |
6 | |
6 |
User | Count |
---|---|
31 | |
12 | |
10 | |
10 | |
9 |