Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Dear Community,
I try to find out the correct DAX for follow excample. When I select a Date with the slicer (DateTable), i will receive the the value out of the corresponting Date range "from" "to"
I hope someone can help me.
Thank you in advance.
Solved! Go to Solution.
Hi @Anonymous ,
According to your description, here are my steps you can follow as a solution.
(1) My test data is the same as yours.
(2) We can create a table.
SlicerTable = VALUES('DateTable'[Date])
(3) We can create a measure.
Flag =
var _slicer=SELECTEDVALUE('SlicerTable'[Date])
return IF(_slicer>= MAX('VFAKT-CommAgreement'[FromDate]) && _slicer<= MAX('VFAKT-CommAgreement'[ToDate]),1,0)
(4) Then the result is as follows.
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,
Neeko Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous ,
According to your description, here are my steps you can follow as a solution.
(1) My test data is the same as yours.
(2) We can create a table.
SlicerTable = VALUES('DateTable'[Date])
(3) We can create a measure.
Flag =
var _slicer=SELECTEDVALUE('SlicerTable'[Date])
return IF(_slicer>= MAX('VFAKT-CommAgreement'[FromDate]) && _slicer<= MAX('VFAKT-CommAgreement'[ToDate]),1,0)
(4) Then the result is as follows.
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,
Neeko Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 8 | |
| 6 | |
| 5 | |
| 5 | |
| 4 |
| User | Count |
|---|---|
| 25 | |
| 16 | |
| 8 | |
| 7 | |
| 7 |