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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi All,
I have fours Dates columns in table
Like
AFromDate, BTodate, CFromDate,DTodate
The issue is i want to use single date to selecte all the period within these four dates.
I have created below Measure and used in visual level filters and set to 1.
It is working fine for two columns but not for all four columns.
Solved! Go to Solution.
Hi @Anonymous ,
It is by design.
You are using SELECTEDVALUE ( 'TableA'[TsFromDate] ) and SELECTEDVALUE ( 'TableA'[TsToDate] ) in the formula.
Remember that SELECTEDVALUE function rely on context, you will need the columns in visual.
Best Regards,
Jay
Hi @Anonymous ,
It is by design.
You are using SELECTEDVALUE ( 'TableA'[TsFromDate] ) and SELECTEDVALUE ( 'TableA'[TsToDate] ) in the formula.
Remember that SELECTEDVALUE function rely on context, you will need the columns in visual.
Best Regards,
Jay
Can you show some sample rows where it doesn't work?
Thanks Lukiz for response.
Now that issue has been resolved.
Can you help me to resolve below DAX.
But when i remove date columns in grid so it does not work and count is 0.
I dont need to show dates in Grid as per requirment.
Any suggestion would be highly appreciated.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 20 | |
| 11 | |
| 10 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 34 | |
| 32 | |
| 19 | |
| 12 | |
| 10 |