Forum Discussion
sagar512
Helper I
4 years agoCount Rows Falling between two dates ( from disconnected table )
Hi, I am having two disconnected tables ( Task and Ticket). On Task Table I need to count tickets (from the Ticket table) that fall between the task created date and Created +90 date. In Excel,...
- 4 years ago
I still don't see an issue here
You need to display
'Table 1'[Created] and'Table 1'[Created +90] in the viz for the DAX to evaluate in the filter context. Without having that axis present, the expression will not evaluate.But if you do want to have that one displayed without bringing'Table 1'[Created] and'Table 1'[Created +90]then you need an index column and do this with a new measure
smpa01
Community Champion
4 years agosagar512 try this measure
Measure =
CALCULATE (
COUNT ( 'Table 2'[Ticket Number] ),
DATESBETWEEN (
'Table 2'[Created],
MAX ( 'Table 1'[Created] ),
MAX ( 'Table 1'[Created +90] )
)
)
- sagar5124 years ago
Helper I
I added a category column into my data and this measure needs the lowest level (task number) to work.
it's not working as expected if I remove the task number.
the calculation should always work on task level and then aggregate per report context
Any way we can achieve this?