March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hello everyone,
I am trying to have a matrix show data of current year or prior. First I tried to filter the data by the Year field through the filter pane like so:
But apparently this is something that you can't do, so then I created a calculated column in my table as follows:
As ou can see in the image, the ANIO in table "AÑO-MES" is the one field used in the filter, and the field AnioFiltr is from the table that has the data and is being displayed in the matrix.
Hi @Anonymous,
I'm not so clear with your description, did you mean the matrix shows the records until the current year period by default and it can be reset by filter effect to show corresponding records?
If that is the case, I'd like to suggest writing measure formulas with isfiltered function and applying on 'visual level filter' to filter records. (current power bi does not support creating dynamic calculated column/table based on filter effects because they are working on the different levels and you can't use child level to effect its parent)
Applying a measure filter in Power BI - SQLBI
ISFILTERED, ISCROSSFILTERED – DAX Guide - SQLBI
Notice: the data level of power bi.
Database(external) -> query table(query, custom function, query parameters) -> data model table(table, calculate column/table) -> data view with virtual tables(measure, visual, filter, slicer)
Regards,
Xiaoxin Sheng
Hi @Anonymous , Have you an example of the actual report so that I can see what's happening or not happening?
Thanks
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
124 | |
87 | |
85 | |
70 | |
51 |
User | Count |
---|---|
205 | |
153 | |
97 | |
79 | |
69 |