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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
andre_kauber
Frequent Visitor

DAX summarize count of values filtering on a different column

I'm stuck on a simple one, also looked in the dax manual but I'm not able to find the solution. 

I want to obtain a count of, say, transactions by date, filtering on a different column. So, let's say I have the table 'cool', the columns [Date], [Transactions], and a third column with object sold [Object]. I want to create a new table, containing the dates and the count of transactions.

 

Table = SUMMARIZE('Cool','Cool'[Date],"Sales",COUNT('Cool'[Transactions]))

 

Now, how can I obtain the count of transactions per date for 'Cool'[Object]="Toy"?

 

Thanks

 

 

1 ACCEPTED SOLUTION
v-yulgu-msft
Microsoft Employee
Microsoft Employee

Hi @andre_kauber,

 

You could modify your formula as below:

Table =
SUMMARIZE (
    FILTER ( Cool, Cool[Object] = "Toy" ),
    Cool[Date],
    "Sales", COUNT ( Cool[Transactions] )
)

Regards,
Yuliana Gu

Community Support Team _ Yuliana Gu
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

3 REPLIES 3
v-yulgu-msft
Microsoft Employee
Microsoft Employee

Hi @andre_kauber,

 

You could modify your formula as below:

Table =
SUMMARIZE (
    FILTER ( Cool, Cool[Object] = "Toy" ),
    Cool[Date],
    "Sales", COUNT ( Cool[Transactions] )
)

Regards,
Yuliana Gu

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

Hello! What I have to do if I need filter by two or more criterias?

Thank you!

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.