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,
I have [Tbl_Sales] that has daily sales [tbl_sales.Dates] (dd/mm/yyyy) and [SalesAmount]
I want a DAX calculation to show something like - Total sales per month, Averaged over the last 6 months (full months) minus 50%.
Thanks in advance
hi @goraem
could elaborate your expectation on "averaged over the last 6 months (full months) minus 50%"?
Total Sales per month since July 2022 (july to December is 6 months whole)
Then
Average (i.e each month had 6 sales so the avg is 6) minus 50% = 3
Then
I want to plot this as a static line on a chart so compare total month sales as stacked columns
Date | Total Sales |
1/07/2022 | 13 |
2/07/2022 | 13 |
3/07/2022 | 16 |
4/07/2022 | 17 |
5/07/2022 | 13 |
6/07/2022 | 13 |
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.