Forum Discussion
IF statement calculating both values
- 1 year ago
Hi Adams_Apple
Th's good to hear the measure is working for you! In order to works sum of total correct, you may use SUMX function to iterate over the table and calculate total sum correctly. Give a try with the below measure.
Projected_BinsPacked = SUMX( VALUES('Date'[Date].[Month]), CALCULATE( COALESCE(SUM('Bins'[Bins Packed]), MAX(Projections[Bins Packed]))) )Let me know if it works.
Thank you!
Hi Adams_Apple ,
You can create another new measure as below and put it on Values fields of matrix to replace the measure [Projected_BinsPacked]:
Measure = SUMX ( VALUES ( 'Date'[Date].[Month] ), [Projected_BinsPacked] )
If the above one can't help you figure out, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic base on the provided sample data. It would be helpful to find out the solution. You can refer the following link to share the required info:
How to provide sample data in the Power BI Forum
And it is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.
How to upload PBI in Community
Best Regards