This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreDid you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. Register now
I have a table with single column that I have dynamically bind to M query parameter.
Column1
now-1d
now-2d
I want to filter the values based on column1 but i want to show value as Last 1day, Last 2 day on filter visual.
Suggest a solution if possible?
Solved! Go to Solution.
Hi @Anonymous ,
You can create a measure as below to get it, please find the details in the attachment.
Measure =
VAR _selday =
SELECTEDVALUE ( 'Table'[Column1] )
VAR _a =
IFERROR ( SEARCH ( "-", _selday ), 0 )
RETURN
CONCATENATE (
"Last ",
CONCATENATE ( MID ( _selday, _a + 1, LEN ( _selday ) - _a - 1 ), " day(s)" )
)
Best Regards
Hi @Anonymous ,
You can create a measure as below to get it, please find the details in the attachment.
Measure =
VAR _selday =
SELECTEDVALUE ( 'Table'[Column1] )
VAR _a =
IFERROR ( SEARCH ( "-", _selday ), 0 )
RETURN
CONCATENATE (
"Last ",
CONCATENATE ( MID ( _selday, _a + 1, LEN ( _selday ) - _a - 1 ), " day(s)" )
)
Best Regards
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 35 | |
| 32 | |
| 25 | |
| 23 | |
| 16 |
| User | Count |
|---|---|
| 65 | |
| 50 | |
| 30 | |
| 24 | |
| 23 |