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.
Hi,
I´m trying to call the value from a measure inside a new table query. The value of the measure is a selected value from a slider. I am calculating the measure with the following formula:
I can print this measure inside a data card, for example:
But when i call the value inside the New table query, it is not retreving the same value. I call the measure in the following way:
In this case, the table created will be always filtered by TODAY() Year, instead of the selected year in the slicer. Which (because of the m_year_selected formula) means the measure is not detecting the t_calendar_dates table as if it was filtered. For example selecting year 2019, and still the query be applying just for 2022.
Rather if I just hardcode the year value inside the measure formula, the filter woul do work in the new table query.
in this case the table is filtered as expected by the year value 2021:
So in synthesis, the selected value from the t_calendar_dates is not being identified in the new table query and the table is not perceived by the query as of it being filtered. And i confirmed this fact because if the ISFILTERED() conditional is removed from the m_year_selected measure, the value retrieved would be "2016". Which corresponds to the minimum value found in the t_calendar_dates tables when no filter is applied.
Please help!
Are there multiple contexts? Or why is it that the table is not being detected as filtered by the selected value when pulled from the new table query? Any ideas on a different approach on how to pass the selected year to the query?
Hi @crlucho ,
Once a table is calculated, it will not recalculate based on your user's current selection. The only way for the table to recalculate is if it's forced to. Two examples are metadata changes and data model refresh.
An alternative solution is to create a virtual table and return the required results / output based on your critera.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
111 | |
95 | |
80 | |
68 | |
59 |
User | Count |
---|---|
150 | |
119 | |
104 | |
87 | |
67 |