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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
ahawk
Regular Visitor

Help with Clustered Column Chart

Hello,

 

Anyone know of a way to filter a clustered column chart to show only two months past a date?

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @ahawk,

 

Thanks for the reply from  Ashish_Mathur.

 

If you just want to filter data two months ago, I think you could use the EDATE().

 

This is my sample data:

vqiaqimsftv_1-1735797987768.png

 

Create a measure and write the DAX as below:

 

SalesTwoMonthsAgo = 
CALCULATE(
    SUM('Table'[Amount]),
    'Table'[Date] >= EDATE(TODAY(), -2) && 'Table'[Date] < EDATE(TODAY(), -1)
)

 

vqiaqimsftv_0-1735797954695.png

 

I would be grateful if you could provide me with the pbix file or sample data.

 

The pbix file is attached.

 

If you have any other questions please feel free to contact me.

 

Best Regards,
Qi
Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @ahawk,

 

Thanks for the reply from  Ashish_Mathur.

 

If you just want to filter data two months ago, I think you could use the EDATE().

 

This is my sample data:

vqiaqimsftv_1-1735797987768.png

 

Create a measure and write the DAX as below:

 

SalesTwoMonthsAgo = 
CALCULATE(
    SUM('Table'[Amount]),
    'Table'[Date] >= EDATE(TODAY(), -2) && 'Table'[Date] < EDATE(TODAY(), -1)
)

 

vqiaqimsftv_0-1735797954695.png

 

I would be grateful if you could provide me with the pbix file or sample data.

 

The pbix file is attached.

 

If you have any other questions please feel free to contact me.

 

Best Regards,
Qi
Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

Ashish_Mathur
Super User
Super User

Hi,

Share some data to work with and show the expected result.  Share data in a format that can be pasted in an MS Excel file.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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