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!The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!
I need to find the best month of sales and return its value (for the max value of the gauge).
Anyone :)?
Solved! Go to Solution.
HI @fva6937
Try this Measure for Highest Month Value
HighestMonthValue =
MAXX (
SUMMARIZE (
TableName,
TableName[Date].[Month],
"Total Sales", SUM ( TableName[Sales] )
),
[Total Sales]
)
HI @fva6937
Try this Measure for Highest Month Value
HighestMonthValue =
MAXX (
SUMMARIZE (
TableName,
TableName[Date].[Month],
"Total Sales", SUM ( TableName[Sales] )
),
[Total Sales]
)
Thant's Awesome! Thanks!!
Is there a way that I could get the value by the Salesperson, when I filter?
I tried SUMX, but I still have more to learn ![]()
Hi @fva6937
Then use this MEASURE for Month with Highest Sales
HighestMonth =
VAR mytable =
SUMMARIZE (
TableName,
TableName[Date].[Month],
"Total Sales", SUM ( TableName[Sales] )
)
VAR myValue = [HighestMonthValue]
RETURN
CALCULATE (
FIRSTNONBLANK ( TableName[Date].[Month], 1 ),
FILTER ( mytable, [Total Sales] = myValue )
)
The Power BI Data Visualization World Championships is back! It's time to submit your entry.
| User | Count |
|---|---|
| 50 | |
| 42 | |
| 36 | |
| 31 | |
| 29 |
| User | Count |
|---|---|
| 129 | |
| 129 | |
| 59 | |
| 48 | |
| 47 |