Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowGet inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.
I'm using this formula to show record in Matrix Visual
Solved! Go to Solution.
Hi @chintusasmal123 ,
It appears that you are trying to create a calculated table. As a calculated table, its values will not be affected by user interactions such as slicers and filters. Please follow the steps outlined below to get the expected table:
1. Create a year dimension table (Do not create any relationship with the table 'HRSSNew')
2. Create a slicer which apply the field [Year] of the above dimension table
3. Create a measure as below
Number =
VAR _year =
SELECTEDVALUE ( 'Year'[Year] ,YEAR(TODAY()))
VAR _count =
CALCULATE (
COUNT ( HRSSNew[ID] ),
FILTER (
HRSSNew,
( HRSSNew[Year] = _year
|| ( HRSSNew[Year] = _year - 1
&& HRSSNew[QuarterNo] = 4 ) )
&& HRSSNew[ProcessType] = "Reports"
)
)
RETURN
_count
Best Regards
Hi @chintusasmal123 ,
It appears that you are trying to create a calculated table. As a calculated table, its values will not be affected by user interactions such as slicers and filters. Please follow the steps outlined below to get the expected table:
1. Create a year dimension table (Do not create any relationship with the table 'HRSSNew')
2. Create a slicer which apply the field [Year] of the above dimension table
3. Create a measure as below
Number =
VAR _year =
SELECTEDVALUE ( 'Year'[Year] ,YEAR(TODAY()))
VAR _count =
CALCULATE (
COUNT ( HRSSNew[ID] ),
FILTER (
HRSSNew,
( HRSSNew[Year] = _year
|| ( HRSSNew[Year] = _year - 1
&& HRSSNew[QuarterNo] = 4 ) )
&& HRSSNew[ProcessType] = "Reports"
)
)
RETURN
_count
Best Regards
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the February 2025 Power BI update to learn about new features.