The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
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 ) )
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
User | Count |
---|---|
113 | |
83 | |
75 | |
51 | |
42 |
User | Count |
---|---|
140 | |
113 | |
73 | |
64 | |
62 |