We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now
Hi, I need to count app_id where date range app_date is between 01/01/2023 and 06/01/2024.
Any idea how to write this out please?
Solved! Go to Solution.
hello @M_SBS_6
use this measure :
measure =
calculate( c
count(table_name[app_id] ,
appdate >="01/01/2023" && appdate >="06/01/2024"
)
now the problem is that this measure is fix to this date.
what i would recommend to do, is to use the custom slicer :
and use this measure instead : measure = count(table_name[app_id])
and use the measure to select the date period to want to display the count for.
If my response has successfully addressed your issue kindly consider marking it as the accepted solution! This will help others find it quickly. Dont forget to hit that thumbs up button 🫡👍
Thank you. If I was to add sum(total_app) just I just add that in instead of countrows?
hello @M_SBS_6
use this measure :
measure =
calculate( c
count(table_name[app_id] ,
appdate >="01/01/2023" && appdate >="06/01/2024"
)
now the problem is that this measure is fix to this date.
what i would recommend to do, is to use the custom slicer :
and use this measure instead : measure = count(table_name[app_id])
and use the measure to select the date period to want to display the count for.
If my response has successfully addressed your issue kindly consider marking it as the accepted solution! This will help others find it quickly. Dont forget to hit that thumbs up button 🫡👍
You can create a DAX measure like this.
CountAppIDsInRange =
COUNTROWS(
FILTER(
YourTableName,
YourTableName[app_date] >= DATE(2023, 1, 1) && YourTableName[app_date] <= DATE(2024, 6, 1)
)
)
Proud to be a Super User!
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 54 | |
| 39 | |
| 32 | |
| 17 | |
| 15 |
| User | Count |
|---|---|
| 64 | |
| 63 | |
| 37 | |
| 36 | |
| 22 |