Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! 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
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 50 | |
| 49 | |
| 35 | |
| 15 | |
| 14 |
| User | Count |
|---|---|
| 91 | |
| 75 | |
| 41 | |
| 26 | |
| 25 |