The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event! Join us in Stockholm, Sweden from September 24-27, 2024.
2-for-1 sale on June 20 only!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
I need sum payment for each day. For example 20170905 has two payments and I need total for that day of (3567.16+176.68)= 3743.84. Need help for Dax? Tryied so many and still can't figure it out. Thanks
Solved! Go to Solution.
Hi @JulietZhu
You need to create a calculated table rather than a calculated measure. Click on the [new table] button on the modelling tab and then paste in your code.
Let me know how you go 🙂
Hi @JulietZhu
If you drag the Date field to a Table visual, then drag the Payment_Amt, it should automatically sum the Payment_Amt
If you are trying to create a table that summarizes this data, you could try the following calculated table
Table = SUMMARIZECOLUMNS( 'Table1'[date], "Sum of Amount",SUM('Table1'[Payment_Amt]) )
Yes. PowerBI will automatically sum based on day if changing to table visual.
I do need create this table for other calculated columns. I tried your formula, but got the following error message. Can't figure out why? Thanks
Hi @JulietZhu
You need to create a calculated table rather than a calculated measure. Click on the [new table] button on the modelling tab and then paste in your code.
Let me know how you go 🙂
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the June 2024 Power BI update to learn about new features.
User | Count |
---|---|
126 | |
107 | |
87 | |
65 | |
60 |
User | Count |
---|---|
257 | |
121 | |
117 | |
100 | |
79 |