Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
pieterhkruger
Frequent Visitor

Total by date category

Hi,

 

Using the following sample data:

DateGroupFILTER
01-May-19AFilter group 1
01-May-19AFilter group 2
01-May-19AFilter group 1
01-May-19BFilter group 1
01-May-19BFilter group 1
01-May-19BFilter group 2
02-May-19AFilter group 1
02-May-19AFilter group 1
02-May-19AFilter group 1
02-May-19AFilter group 2
02-May-19AFilter group 2
02-May-19AFilter group 2
02-May-19BFilter group 1
02-May-19BFilter group 2
03-May-19AFilter group 2
03-May-19AFilter group 2
03-May-19BFilter group 1
03-May-19BFilter group 1
03-May-19BFilter group 2
03-May-19BFilter group 2

 

I want to be able to create a table that looks like this:

DateGroupCount of Group & dateTotal count by date only
2019/05/01A36
2019/05/01B36
2019/05/02A68
2019/05/02B28
2019/05/03A26
2019/05/03B46

 

I am particularly interested in getting the values for the last column.  I suppose one would need to create a DAX measure.  How can one go about doing so?

1 ACCEPTED SOLUTION
v-lili6-msft
Community Support
Community Support

hi, @pieterhkruger 

Just try this formula to add a measure

Measure = CALCULATE(COUNTA(Table1[Group]),ALLEXCEPT(Table1,Table1[Date]))

Result:

4.JPG

 

Best Regards,

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-lili6-msft
Community Support
Community Support

hi, @pieterhkruger 

Just try this formula to add a measure

Measure = CALCULATE(COUNTA(Table1[Group]),ALLEXCEPT(Table1,Table1[Date]))

Result:

4.JPG

 

Best Regards,

Lin

Community Support Team _ Lin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
jthomson
Solution Sage
Solution Sage

Use countrows on the table the same way you'd make the first column, but you want to apply allexcept to the date column - this'll make the calculation disregard the group (and anything else for that matter) but still split it by date

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.