Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowGet inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.
My user has requested that the stacked column chart default to highlighting the maximun month while also displaying the rest of the months in the chart. Is there a way to set a default when the report opens to highlight the maximum month in the chart without loosing the rest of the chart?
Thanks, Mark
@Anonymous , stacked visual do not support conditional formatting with legents. I doubt you can highlight.
Or you can have stacked line with the line having value for the current month that might display dot on the current month
if(Max(Date[Month]) = format(Today(),"MMM-YYYY"), [Measure], blank())
//Use month format you are using.
Thanks for your suggestion. If the result of this this formula is the current month won't that month be the only month in the chart?
Hi @Anonymous ,
Have you resolved this issue? If the answer is helpful, please accept it as solution. Others will benefit from this thread. Thanks!
Hi @Anonymous ,
Please follow this to have a try:
A disconnected table:
Date = CALENDAR(MIN('Table'[Date]),MAX('Table'[Date]))
Measures:
Total sales =
VAR selectedsales =
CALCULATE (
SUM ( 'Table'[Sales] ),
FILTER (
'Table',
'Table'[Date].[Month] = SELECTEDVALUE ( 'Date'[Date].[Month] )
)
)
RETURN
IF (
ISFILTERED ( 'Date'[Date].[Month] ),
selectedsales,
CALCULATE ( SUM ( 'Table'[Sales] ) )
)
Measure =
VAR maxdate =
MAXX ( ALL ( 'Table' ), 'Table'[Date] )
RETURN
IF (
ISFILTERED ( 'Date'[Date].[Month] ),
"Blue",
IF ( MAX ( 'Table'[Date] ) = maxdate, "Blue", "Gray" )
)
You could reference the document to learn more about conditional formatting and change other colors in the formula.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
126 | |
113 | |
71 | |
65 | |
46 |