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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Aruna_ln
Helper III
Helper III

I need Measure data format

HI anybody help me

MY
3 reports i am using SSAS is source
1st report scenario :i am using Matrix
Row is Name
Column is Year
value is amount

anybody help Column shoulbe Two columns one is CurrentYear 2nd column is previous year (mean comarison current year vs previous)
exp:2017,2016 if next year automatically refresh my columns 2018 and 2017 like
How to create Measure ?

2 Report scenario: here row shoulbe last 12 month:i need last 12 month list ( mean 2017-11 this month i need last 12 like 2017-10,2017-09,2017-08,..2016-11)
automatically i need updates next month mean like 2017-12 to 2016-12) like
how to create Measure?
3 Report scenario.current month year last year same month( mean 2017-11 this year,previous year 2016-11)

4 REPLIES 4
Abduvali
Skilled Sharer
Skilled Sharer

Hi @Aruna_ln,

 

I'm not sure if the following will work with analysis services but have a look:

 

https://www.pbiusergroup.com/viewdocument/current-last-year

 

 

Regards

Abduvali

 

@Abduvali how are you connecting to SSAS? Is it live query or import?



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Hi parry,
I am connecting live query.
Anonymous
Not applicable

@Aruna_ln,

For your first question, in "Connect Live" mode, when you put year in Column of Matrix visual, it is not possible to use measure in Power BI Desktop to limit the column to show current year and previous year. I would recommend you limit year to current year and last year using MDX or DAX query at the beginning that you connect to SSAS database.

About your second question, do you want to show amount of last 12 month? If so, you can create measure as described in this similar thread.

About the third question, create the following measures.

Amount of Current Year Month = CALCULATE(SUM('Table'[Amount]), FILTER('Table',YEAR('Table'[Date])=YEAR(TODAY())&&MONTH('Table'[Date])=MONTH(TODAY())))

Amount of last Year Month = CALCULATE(SUM('Table'[Amount]), FILTER('Table',YEAR('Table'[Date])=YEAR(TODAY())-1&&MONTH('Table'[Date])=MONTH(TODAY())))

If above measures don't help, please share sample data and post expected result in table format.


Regards,
Lydia

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors