Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
VVlachos
New Member

Calculated Group Visual Problem

So I have a calculated group that I calculate current season and last season but I want when I drop the measure in a matrix I want to have net revenue current season side by side net revenue last season, room night current season side by side room night last season. Its like i want to reverse the 2 headers, to have Name at the top and above have the selected. Does anybody knows how i can do that?


Hope I make it understandable.

VVlachos_1-1701875594525.png

This is the  Item into the Calculation Group:

VAR hel = SELECTEDVALUE ( 'Season (2)'[SeasonalYear] )  RETURN CALCULATE( SELECTEDMEASURE(), ReservationLine, ReservationLine[SeasonalYear] = hel, 'Hotel Budget'[SeasonalYear] = hel ) 

and this is the  item into the same Calculation Group:

VAR hel = SELECTEDVALUE ( 'Season (2)'[SeasonalYear] ) VAR hel1 = hel - 1  VAR hel2 = YEAR ( TODAY () ) VAR hel3 = IF ( hel > hel2, DATE ( YEAR ( TODAY () ) - 1, MONTH ( TODAY () ), DAY ( TODAY () ) ), DATE ( YEAR ( TODAY () ), MONTH ( TODAY () ), DAY ( TODAY () ) ) ) RETURN CALCULATE( SELECTEDMEASURE(), 'Calendar Reservation'[Date] <= hel3, ReservationLine, ReservationLine[SeasonalYear] = hel1, 'Hotel Budget'[SeasonalYear] = hel1 )

 

1 REPLY 1
LGV
New Member

I have the same problem...

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.