Forum Discussion
How to display only selected date value in Power bi
- Anonymous4 years ago
Hi DianaZ ,
I created a sample pbix file(see attachment) for you, please check whether that is what you want. You can create a measure as below:
SBO FTE Trending = VAR _selperiod = SELECTEDVALUE ( 'Filter Reporting Period'[Reporting Period] ) VAR _numperiod = VALUE ( LEFT ( _selperiod, 4 ) & RIGHT ( _selperiod, 2 ) ) RETURN CALCULATE ( SUM ( 'Table'[Trend] ), FILTER ( 'Table', VALUE ( YEAR ( 'Table'[Date] ) & FORMAT ( 'Table'[Date], "mm" ) ) <= _numperiod ) )If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. Thank you.
Best Regards
You can use SBO FTE Trending =
_Var sv = SELECTEDVALUE('Filter Reporting Period'[Reporting Period])
RETURN
CALCULATE('01 Measures'[SBO FTE], REMOVEFILTERS('Filter Reporting Period'[Reporting Period]), 'Filter Reporting Period'[Reporting Period] = sv || 'Filter Reporting Period'[Reporting Period] = "2020-12", || 'Filter Reporting Period'[Reporting Period] = "2021-12")