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
Sébastien_S
Regular Visitor

year over year comparision with SSAS data source

Hello all,

 

Currently working on Power BI Desktop, i have a report with monthly data starting from january 2019.
I would like to make a graph allowing to compare months from 2019 and 2020.

 

My data come from an SQL Server Analysis service, so I can't build a column with only the month name without year number.

It's not "my" cube, so I can't neither modify it to add columns as I want.

 

How could I do this with Power BI ?
Maybe with a custom visual ?

 

Thanks a lot for your help !

 

1 ACCEPTED SOLUTION

Hey @Sébastien_S ,

 

it seems you have a live connection to SSAS Multidimensional.

 

This means you can't achieve what you are looking for, as SSAS Multidimensional live connections do not allow creating report based measures.

 

Without altering the SSAS measures you are stuck.

 

Regards,

Tom

 



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

View solution in original post

3 REPLIES 3
amitchandak
Super User
Super User

@Sébastien_S 

You can have measures like this :

YTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESYTD(('Date'[Date]),"12/31"))
This Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESYTD((ENDOFYEAR('Date'[Date])),"12/31"))
Last YTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESYTD(dateadd('Date'[Date],-1,Year),"12/31"))
Last YTD complete Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESYTD(ENDOFYEAR(dateadd('Date'[Date],-1,Year)),"12/31"))
Last to last YTD Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESYTD(dateadd('Date'[Date],-2,Year),"12/31"))
Year behind Sales = CALCULATE(SUM(Sales[Sales Amount]),dateadd('Date'[Date],-1,Year))

In case you have a date.

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Hello @amitchandak ,

 

Thanks for the quick answer.

 

Unfortunately, i'm not able to create new measures since my data set is an SSAS cube, with direct connection.

 

Or I don't know how to do this.

 

Hey @Sébastien_S ,

 

it seems you have a live connection to SSAS Multidimensional.

 

This means you can't achieve what you are looking for, as SSAS Multidimensional live connections do not allow creating report based measures.

 

Without altering the SSAS measures you are stuck.

 

Regards,

Tom

 



Did I answer your question? Mark my post as a solution, this will help others!

Proud to be a Super User!
I accept Kudos 😉
Hamburg, Germany

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.