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
YeseniaGaviria
Regular Visitor

can not show current month and month of the previous year as columns in a matrix

Hi,

In the making of this solution http://community.powerbi.com/t5/Desktop/Show-data-of-last-months-from-a-particular-month-filtering-w....

In this case to show the value of the actual month and the value of same month of the last year. What I do is take the Visual Level Filter that I need.

level filter.jpg

This Works fine until I try to show the month and the year like columns on matrix. That is, I am trying to cross my value through a hierarchy that I call Empresa / Finca. If I show the crossing of the Company, the head office, year and month, by rows it works well.

Show Data.jpg

 

But when I try to pass Año_Mes to columns, the matrix does not show anything anymore.

not show data.jpg

But if I remove the filter applied to the DateDifference metric if it shows all the values, it is as if the matrix was not able to filter those columns.

5 REPLIES 5
YeseniaGaviria
Regular Visitor

Hi @v-jiascu-msft,

 

I leave the link to download the pbix file. 

 

 

You tell me if it works for you.

 

Thank you so much.

 

 

Hi @YeseniaGaviria,

 

Please delete the link if it contains any confidential information. 

 

The solution you posted in your initial post isn't proper for your case. If you clear the filter "Datedifference", there will be data showing up. 

How about this?

1. Add a calculated column in the table "Fechas Informacion".

Month = Month([Fecha Informacion])

2. Add the column "Month" to the "Visual level Filters".

can_not_show_current_month_and_month_of_the_previous_year_as_columns_in_a_matrix

 

Best Regards,

Dale

 

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi @v-jiascu-msft,

 

Thank you very much for your solution, although it is not precisely month 01 and month 12 what I want to see.
What I need is to be able to show the value of the filtered month and the value of the same month but of the previous year. That is if the user selects February of 2017 that shows the value of that month and February of 2016.
With the datediferrence, I intended to do that since this metric starts at 0 with the filtered month and gives 12 just at the value of the month of the previous year.

month filter.JPG

Vicky_Song
Impactful Individual
Impactful Individual

 
v-jiascu-msft
Employee
Employee

Hi @YeseniaGaviria,

 

Can you share your pbix file please? You can mask your real data. I don't have the data and the structure, so I can't reproduce it. You can upload your file to a cloud drive like OneDrive, GoogleDrive, then send me a message with the link that I can download the file from.

 

Best Regards,

Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.