The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Hi, I'm currently using a calculation group as a page filter so that all components are filtered by a 12-month period, using the end date of the date slicer (a 'Date Selection' table just used for parameter selection) that filters on the main date table ('Date') used by all the measures
VAR EndDate = EOMONTH ( MAX ( 'Date Selection'[Date] ), 0 )
VAR StartDate = EDATE (EndDate, -12 )
RETURN CALCULATE ( SELECTEDMEASURE (), FILTER ( 'Date', 'Date'[Date] <= EndDate && 'Date'[Date] > StartDate ) )
Everything works well. However, I've noticed weird behaviour with some calculated measures. If I have a chart with dates on the x-axis, it will show only 12 months for everything except for measures that are manipulated in specific ways. For instance, if I create a measure with just a constant:
Test Measure = 5
And then plot it on a chart with time on the x-axis, it will show all dates instead of just 12 months. However, if I do something like this:
Solved! Go to Solution.
Items that are not connected to your data model (like your Test Measure) will also not be impacted by filter context. That means if you include these items in your visuals you create cartesian products.
As soon as you tie these items into your data model they will be subject to the filter context and join rules.
Items that are not connected to your data model (like your Test Measure) will also not be impacted by filter context. That means if you include these items in your visuals you create cartesian products.
As soon as you tie these items into your data model they will be subject to the filter context and join rules.
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
108 | |
78 | |
77 | |
46 | |
39 |
User | Count |
---|---|
137 | |
108 | |
64 | |
64 | |
53 |