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!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
Hi, is it possible to create a matrix table with four date columns: sales yesterday, sales this week, sales this month, and year to date?
Thanks.
Solved! Go to Solution.
Hi @1001
Yes again 🙂
If you need it dynamic
First of all, you need the dim_date and mark it as a date table,see linked tutorial (and you will need some dates slicer) :
https://radacad.com/power-bi-date-or-calendar-table-best-method-dax-or-power-query
if it always according to "today"
ii all bottoms suggestions use TODAy() instead date column from the date table.
Last day sales :
PREVIOUSDAY = CALCULATE(SUM(Orders[Sales]), PREVIOUSDAY(Date_Table[Date]))
this week sales
https://www.youtube.com/watch?v=kqr5iyd55Og
mtd / ytd
If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly
Hi @1001, Yes, you need to create measures for all your periods and put them on "values".
If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly
Hi Rita, thx. Would you know of any DAX examples I could reference to start building this out?
Hi @1001
Yes again 🙂
If you need it dynamic
First of all, you need the dim_date and mark it as a date table,see linked tutorial (and you will need some dates slicer) :
https://radacad.com/power-bi-date-or-calendar-table-best-method-dax-or-power-query
if it always according to "today"
ii all bottoms suggestions use TODAy() instead date column from the date table.
Last day sales :
PREVIOUSDAY = CALCULATE(SUM(Orders[Sales]), PREVIOUSDAY(Date_Table[Date]))
this week sales
https://www.youtube.com/watch?v=kqr5iyd55Og
mtd / ytd
If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly
Thanks Rita, will look over these today. Cheers.
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the September 2025 Power BI update to learn about new features.