This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
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 April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 38 | |
| 29 | |
| 28 | |
| 20 | |
| 18 |
| User | Count |
|---|---|
| 66 | |
| 34 | |
| 32 | |
| 25 | |
| 23 |