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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Total Sales last year and same month's vs. actual year filter.

Hi all..

 

I´m new in the world of powerbi, I tried your 'final' formula but can not get it to work. I am a Beginner and just trying to understand DAX, so I need your help please, I have 2 tables one with the calendar and another with sales of 3 continuous years. The result that I want to obtain is the growth of the year filtered / in the previous year, just like if I filter the month or several months I consider the same months of the last year. My calendar is up to date so from 2017 I only have until 22 march. For now only I have achieved that depending on the filter in the year I get the total sales, but selecting the months nothing happens. If I select any month I compare all the previous year against the month and the year selected, that is wrong. It should be 2017, months January, February vs. 2016 January, February,

paso1.PNG

 

 

Filter1.PNG

 

 

filter2.PNG

 

 filtro3.PNG

 

 Thx for ur time and help.

 

Gerardo.

 

 

 

 

 

 

 

1 ACCEPTED SOLUTION
Vvelarde
Community Champion
Community Champion

@Anonymous

 

Hi, please review this PBIX.

 

I think will help you in your question.

 

https://drive.google.com/file/d/0B95C8CKdTZE3Z1I5aERLRkczYjg/view?usp=sharing




Lima - Peru

View solution in original post

4 REPLIES 4
Vvelarde
Community Champion
Community Champion

@Anonymous

 

Hi, please review this PBIX.

 

I think will help you in your question.

 

https://drive.google.com/file/d/0B95C8CKdTZE3Z1I5aERLRkczYjg/view?usp=sharing




Lima - Peru
Anonymous
Not applicable

@Vvelarde, it´s a great solution, Make the formulas that come in the file and just for the one of sales shows me information for the one of sales previous year does not show anything, you know to what it is .. my relation between the tables is single and I see that your relation is bidereccional. If I change this relationship in my data model, I will correlate some other relationships I have.

@Anonymous

 

check the slicers that you use. Both Comes from CalendarTable?

 




Lima - Peru
Anonymous
Not applicable

the slicers come's from same table Calendar. 😞

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.