Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
I have 2 tables, one containing a value and another with details of date ranges. Here are the details:
TCERs Data table contains the Age in Days for each TCER.
TCER id | Creation Date | Age in Days |
XXXX | MM/DD/YYYY | 6 |
Age Groups table contains rows for each date range (1-7, 8-14,...) along with corresponding Minimum and Maximum values. The table looks like this:
Range | Minimum | Maximum |
01-07 | 1 | 7 |
08-14 | 8 | 14 |
I need a measurement (that can be placed on a timeline) which will count the number of TCERs whose Age in Days falls between the minimum and maximum of a specified range.
Solved! Go to Solution.
Hi @rinabernardo ,
Please create a measure.
Measure = CALCULATE(COUNTROWS('TCER data table'),FILTER(ALL('TCER data table'),'TCER data table'[Age in Days]<=SELECTEDVALUE('Table'[Maximum])&&'TCER data table'[Age in Days]>=SELECTEDVALUE('Table'[Minimum])))
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Best Regards
Community Support Team _ Polly
Hi @rinabernardo ,
Please create a measure.
Measure = CALCULATE(COUNTROWS('TCER data table'),FILTER(ALL('TCER data table'),'TCER data table'[Age in Days]<=SELECTEDVALUE('Table'[Maximum])&&'TCER data table'[Age in Days]>=SELECTEDVALUE('Table'[Minimum])))
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Best Regards
Community Support Team _ Polly
Hey @rinabernardo ,
I assume this article describes what you are looking for: Dynamic segmentation – DAX Patterns
Hopefully, this provides what you are looking for.
Regards,
Tom
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
113 | |
99 | |
80 | |
70 | |
59 |
User | Count |
---|---|
149 | |
114 | |
107 | |
89 | |
67 |