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.
Hi guys,
i have the following table, datetime and a value, this pic shows only ne day August 7th however it has much more,
I would like to get a cummulative count of each unique day in the table, for example August 7th gets 1, without caring for the time, then August 8th the 2 and so on, how can i achieve this?
Many thanks.
Solved! Go to Solution.
You should split the date/time into 2 columns during data load. You should also get a calendar table for more robust reporting. https://exceleratorbi.com.au/power-pivot-calendar-tables/
HI @Anonymous,
You can try to use following calculate column formula if it meets your requirement:
Index=
COUNTROWS (
SUMMARIZE (
FILTER (
ADDCOLUMNS ( ALLSELECTED ( Table ), "Date", DATEVALUE ( Table[EndDateTime] ) ),
[Date] <= EARLIER ( Table[EndDateTime] )
),
[Date]
)
)
Regards,
Xiaoxin Sheng
HI @Anonymous,
You can try to use following calculate column formula if it meets your requirement:
Index=
COUNTROWS (
SUMMARIZE (
FILTER (
ADDCOLUMNS ( ALLSELECTED ( Table ), "Date", DATEVALUE ( Table[EndDateTime] ) ),
[Date] <= EARLIER ( Table[EndDateTime] )
),
[Date]
)
)
Regards,
Xiaoxin Sheng
Hi @Anonymous
I would use the DATEDIFF('table'[EndDateTime],today(),DAY) and create a column, sounds good.
Did I resolve your issue? Mark my post as a solution! Appreciate your Kudos, Press the thumbs up button!!
Regards,
Pranit
Hope it resolves your issue? Did I answer your question? Mark my post as a solution! Appreciate your Kudos, Press the thumbs up button!! Linkedin Profile |
You should split the date/time into 2 columns during data load. You should also get a calendar table for more robust reporting. https://exceleratorbi.com.au/power-pivot-calendar-tables/
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 |
---|---|
114 | |
99 | |
82 | |
70 | |
61 |
User | Count |
---|---|
149 | |
114 | |
107 | |
89 | |
67 |