Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
Hi all
I have a table with daily balances. I would like to create a measure that, when I show the values in a matrix per day, it shows me the daily balance and, when I show the balances by month, it shows the closing balance for the month, instead of the aggregation of the daily balances.
Can you please help me with this?
Thanks
Solved! Go to Solution.
Hi @jtemes
Take a look at the PBIX here.
The DAX reads
Balance =
CALCULATE(MAX(Balances[DailyBalance]),Dates[Date]=Max(Balances[BalDate]))
Did I answer your question? Mark my post as a solution! Appreciate your Kudos !! Happy to help!!
Pete
Web: https://binavigation.com
Linked In: https://www.linkedin.com/in/pete-smith-955b73181
Hi @jtemes
Take a look at the PBIX here.
The DAX reads
Balance =
CALCULATE(MAX(Balances[DailyBalance]),Dates[Date]=Max(Balances[BalDate]))
Did I answer your question? Mark my post as a solution! Appreciate your Kudos !! Happy to help!!
Pete
Web: https://binavigation.com
Linked In: https://www.linkedin.com/in/pete-smith-955b73181
Great! Thank you very much for your help!
How does your table structure look? How do you get to the closing balance amount?
It is quite simple, there are two columns, one with the date and the other with the balance. Additionally, there is a calendar table with a relation to the date column
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 53 | |
| 48 | |
| 38 | |
| 15 | |
| 14 |
| User | Count |
|---|---|
| 93 | |
| 79 | |
| 37 | |
| 27 | |
| 25 |