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
dador33
Frequent Visitor

Filter value withj columns in the same Matrix

Hi,

I have a power bi matrix, but I wish that when selecting a year it would bring me 3 columns and when selecting another year it would bring me only one column, and the final column would be the variation between one year and the other in%.
Attached image
Thanks a lot.

Value_same_matrix.PNG

5 REPLIES 5
v-xulin-mstf
Community Support
Community Support

Hi @dador33,

 

Did my solution solve your issue? If the issue has been solved, please adopt the solution to help others.

If you still have some question, please don't hesitate to let me known.‌‌

 

Best Regards,

Link

 

Is that the answer you're looking for? If this post helps, then please consider Accept it as the solution. Really appreciate!

 

The solution is not what I need, I'm going to put a few screenshots. of how I want it.

The year slicer is a string type table, it is not a calendar, so when I select year 21 it loads me some metrics that it already creates (as seen in the image), then I create another table that is not related to the model that at the time of press the year to compare, for example 20 brings me a metric (

Real_comparativo = CALCULATE ( [Eje_Real_ext], FILTER ( ALLSELECTED(Ano[Ano]),Ano[Ano]= SELECTEDVALUE(Ano_compara[Ano_compa]) ) )
)

but is not work,.

extension.PNG

 
v-xulin-mstf
Community Support
Community Support

Hi @dador33,

 

Maybe you create a custom matrix to meet your need.

Here's a related bolg that nicely illustrates how to customize the matrix, please refer:

https://community.powerbi.com/t5/Community-Blog/Creating-a-custom-or-hybrid-matrix-in-PowerBI/ba-p/1...

If you still have some question, please don't hesitate to let me known.‌‌

 

Best Regards,

Link

 

Is that the answer you're looking for? If this post helps, then please consider Accept it as the solution. Really appreciate!

Mohammad_Refaei
Solution Specialist
Solution Specialist

You can create a table of the 2nd year values and write a measure to capture he values for the selected year based on this table.

 

m_refaei_0-1628036393722.png

 

Please check this sample file

Hi the solution is not work because the year is only a String is not calendar . 

is another function exists?

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.