Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hi All,
Hope you can help.
I am trying to use end user input values to feed into a DAX formula. For this I am using two different date tables.
End Date
Start Date
the Formula for DAX for selecting single value from each table is
these two formula give me the expected result. But when i try to feed these two formulas into Calculated columns it is not working. The calculated column is basically tring to check if the column [P_date](Date type) in table 'A table' lies in Start and end date range.
Solved! Go to Solution.
@mlsx4 yes found th solution with sth similar posting for future visitors. I created a measure instead.
If you want to check that the date is between two values, you should relate them with calendar table (without any active relationship) and use something like:
Start Date'[Start Date]<=MAX('A table'[P_date]) && 'End Date'[End Date]>=MAX('A table'[P_date])
@mlsx4 yes found th solution with sth similar posting for future visitors. I created a measure instead.
User | Count |
---|---|
17 | |
14 | |
13 | |
13 | |
12 |
User | Count |
---|---|
19 | |
15 | |
14 | |
10 | |
9 |