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.
Hi everyone,
I have this table:
I just need to get the total cost per month (from a column from another table) and place it on the "Total Cost/Month" column.
Here's the source table
and this should be the result
I'm just new to Power BI I just can't figure it out how to do it
TIA!
Solved! Go to Solution.
Hi @Anonymous,
Based on my test, you could refer to below formula:
Column = IF(CALCULATE(SUM(Table1[Cost]),FILTER('Table1','Table1'[Month]=Table2[Month Number]))<>BLANK(),CALCULATE(SUM(Table1[Cost]),FILTER('Table1','Table1'[Month]=Table2[Month Number])),0)
Result:
You could also download the pbix file to have a view.
Regards,
Daniel He
Hi @Anonymous,
Based on my test, you could refer to below formula:
Column = IF(CALCULATE(SUM(Table1[Cost]),FILTER('Table1','Table1'[Month]=Table2[Month Number]))<>BLANK(),CALCULATE(SUM(Table1[Cost]),FILTER('Table1','Table1'[Month]=Table2[Month Number])),0)
Result:
You could also download the pbix file to have a view.
Regards,
Daniel He
Hey @v-danhe-msft thanks for this! I am studying the formula so I can use it on my other files. You know where I can hae a basic tutorial or guide on the formulas? Thanks
Hi @Anonymous
Please put some sample data of the tables you have in your data model and the actual result you expect.
Cheers
CheenuSing
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
109 | |
99 | |
77 | |
66 | |
54 |
User | Count |
---|---|
144 | |
104 | |
102 | |
87 | |
64 |