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!View all the Fabric Data Days sessions on demand. View schedule
Hi,
I have this table and I would like to create a KPI that shows me the max sum of sales of the calendar date:
The max sales KPI gives me 135, but it should give me 369 that is the maximum sum of sales in the period selected.
How can I achieve that?
Thanks!
Solved! Go to Solution.
Hi @EstherBR
I would recommend you create these measures, assuming 'Calendar'[Date] is the relevant date column:
Sales Sum =
SUM ( 'Product'[Sales] )Max Sales by Date =
MAXX (
VALUES ( 'Calendar'[Date] ),
[Sales Sum]
)
Does this work for you?
Hi @EstherBR
I would recommend you create these measures, assuming 'Calendar'[Date] is the relevant date column:
Sales Sum =
SUM ( 'Product'[Sales] )Max Sales by Date =
MAXX (
VALUES ( 'Calendar'[Date] ),
[Sales Sum]
)
Does this work for you?
Hi @EstherBR
You need to use MAXX(), which creates a virtual table and iterates over each date to get the daily sales value, then picks the maximum of those values.
Max Sales in period =
MAXX (
VALUES ( 'Dim_Date'[Date] ),
[TotalSales]
)
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!