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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
febish
New Member

Hi, Could you please explain me me how to do a count of column items in particular date period ?

Hi, Please explain me how to do the count of coloumn item in a particlar time period ? and last three days ?

 

I have a sales data with particlar sales type " Direct", "Inderect", etc. I want to count this based on the time period and MTD. 

 

1) Do I need a sperate Clander table to use the time intelligence functions ?

2) What is the DAX for this 

3) Do I need key tables ?

4) What are the parameters I need to choose for a matrix visulization ?

5) How to automate this report ?  I want send this automatically on daily once in a particlar time.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

@febish 
Vpazhenmsft_0-1635834211839.png

I somehow cannot get your expect result with the last 3 days logic using, 16th,17th and 18th are not the last 3 days. If you mean you want the earliest 3 days, which is also doesn't make sense because you only have 1 "Change" method on 16th. Please clarify the expect result or correct me if I misunderstood. 

 

 

Best regards
Paul Zheng _ Community Support Team

View solution in original post

5 REPLIES 5
Anonymous
Not applicable

@febish 
Vpazhenmsft_0-1635834211839.png

I somehow cannot get your expect result with the last 3 days logic using, 16th,17th and 18th are not the last 3 days. If you mean you want the earliest 3 days, which is also doesn't make sense because you only have 1 "Change" method on 16th. Please clarify the expect result or correct me if I misunderstood. 

 

 

Best regards
Paul Zheng _ Community Support Team

febish
New Member

Thank you so much for reply @VahidDM 

 

Pease help me how to do the count of a column item (METHOD) for the last three days (refer the sample dats as below).

 

I need to have DAX formula, as the dashboard need to automated.

Kindly support.

Febish

 

MethodEntry Date

Direct10/19/21 10:09 AM
Indirect10/18/21 10:09 AM
Change10/17/21 10:09 AM
Direct10/19/21 10:09 AM
Indirect10/21/21 10:09 AM
Change10/16/21 10:09 AM
Direct10/17/21 10:09 AM
Indirect10/17/21 10:09 AM
Change10/19/21 10:09 AM
Direct10/19/21 10:09 AM
Indirect10/19/21 10:09 AM
Change10/18/21 10:09 AM
Direct10/17/21 10:09 AM
Indirect10/19/21 10:09 AM
Change10/21/21 10:09 AM

 

EXPECTED RESULT

Row Labels16-Oct-2117-Oct-2118-Oct-21
Change242
Direct120
Indirect162
Grand Total4124

Do you need dax or just a solution? If you want a solution, add Entry Date to the filter section and set it to show the last 3 days or topN 3.

 

Appreciate your Kudos!!

 

Hi @VahidDM 

 

I need a DAX, as this report I need to automate.

 

Thanks,

Febish

VahidDM
Super User
Super User

Hi @febish 

 

1) Do I need a sperate Clander table to use the time intelligence functions? YES

see this link: https://www.vahiddm.com/post/creating-calendar-table-with-3-steps

 

2) What is the DAX for this? https://docs.microsoft.com/en-us/dax/totalmtd-function-dax

3) Do I need key tables ? ??

4) What are the parameters I need to choose for a matrix visualization ? It depends on what you want to show on the report

5) How to automate this report ?  I want send this automatically on daily once in a particlar time? DAX will calculate the value automatically based on your data

 

 

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.

Appreciate your Kudos!!

 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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