Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Is there a ability to exclude a visual from the report filter? I have a line chart which I want to filter over a separate time range (last 12 month) as the rest of my visuals (last month).
There's no way to alter a visual to ignore the report filter. You can write a measure that would ignore the filter context from the report-level filter.
A sample.
AmountBase = SUM( 'FactTable'[Amount] ) AmountRolling12 = CALCULATE( [AmountBase] ,DATESINPERIOD( DimDate[Date] ,MAX( DimDate[Date] ) ,-12 ,MONTH ) )
This depends on a date dimension (google "power pivot date dimension" if you don't have one. Make or acquire one if you don't have one. This conversation is not worth having if you don't have one) that is related to your fact table on DimDate[Date] = FactTable[Date].
The MAX() in the DATESINPERIOD() will be evaluated in the report filter context, so if you have a filter for the current month, MAX( DimDate[Date] ) will be the last date in the filter month. You could alternately use TODAY() instead of the MAX() to have the rolling 12 month period determined by the system date at time of running the report.
Check out the September 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
112 | |
102 | |
94 | |
38 | |
30 |