Forum Discussion
The8
2 years agoHelper II
Table Total Incorrect with Measure A using in New Measure
Hi, I have loaded data into power BI from excel and I have created relationship betweeen tables using currency column. Sheet 1 Sheet 2 Now I have following measures Final Price...
- 2 years ago
Hi,
PBI file attached.
Hope this helps.
Greg_Deckler
2 years agoCommunity Champion
The8 Cool, please post your data as text and all relevant formulas.
The8
2 years agoHelper II
Hello Greg_Deckler ,
Sheet 1
| Material | Date | Quantity | Price | Currency |
| X1 | 01.01.2024 | 30 | 86 | EUR |
| X2 | 01.01.2024 | 20 | 177 | USD |
| X3 | 01.01.2024 | 15 | 36 | EUR |
| X1 | 01.02.2024 | 43 | 81 | EUR |
| X2 | 01.02.2024 | 46 | 165 | USD |
| X3 | 01.02.2024 | 34 | 40 | EUR |
| X1 | 01.03.2024 | 28 | 85 | EUR |
| X2 | 01.03.2024 | 46 | 175 | USD |
| X3 | 01.03.2024 | 32 | 35 | EUR |
Sheet 2
| From € to $ (Conv. Rate) | Currency |
| 1,08 | USD |
| 1 | EUR |
Both this tables are in relationship by column Currency.
Measures:
Final Price in € = DIVIDE(SUM(Sheet1[Price]),SUM('Sheet2'[From € to $ (Conv. Rate)]),0)
Net price = DIVIDE([Final Price in €],SUM(Sheet1[Quantity]),0)
Thanks !!
Thanks !!
- Greg_Deckler2 years agoCommunity Champion
The8 See PBIX attached below signature.
- The82 years agoHelper II
Hello Greg_Deckler
Is that possible even when I take material into a table or matrix in my case?
Thanks !!- Greg_Deckler2 years agoCommunity Champion
The8 I don't think that you are taking the time to read up on this issue, particular the second link I posted that goes through the issue in detail and how to fix it. If you include additional columns in your table visual, you have to add those columns to your SUMMARIZE like this:
Final Price Total = VAR __Table = SUMMARIZE( 'Sheet1', [Date],[Material], "__Value", [Final Price in €]) VAR __Result = IF(HASONEVALUE(Sheet1[Date]), [Final Price in €], SUMX(__Table, [__Value])) RETURN __Result