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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
PowerRon
Post Patron
Post Patron

Select data based on two date columns

Hi

 

I simplified the problem.
Below the pbix and excel

https://www.dropbox.com/scl/fi/rxg86mc4id414vkr5ndks/test01.pbix?rlkey=na7webydnvk2lxtg9gk9brfxf&st=... 

https://www.dropbox.com/scl/fi/uatvtyw6k6ccekv7py6l2/test01.xlsx?rlkey=ckeh616t1q6v4pmw0gjjyv194&st=... 

I only want to show the contracts for which either the LastMutationDate of the contract or the Max(TrxOrderDate) of the transactions for that contract is more or equal to 12 months ago.
So 22 should be shown, because LastMutationDate = '01-01-2023'.
And also 66 because Max(TrxOrderDate) = '03-01-2024'

How do I get this working? And will it also work if I add another dimension to the star schema or extra columns to the table named 'Selection'?

I hope someone can help.
Thnx in advance
Ron

1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

Your pbix file has implicit measures disabled. That may be what tripped you up.

 

lbendlin_0-1741981362678.png

What should happen if BOTH intervals are greater than 12 months?

View solution in original post

3 REPLIES 3
lbendlin
Super User
Super User

Your pbix file has implicit measures disabled. That may be what tripped you up.

 

lbendlin_0-1741981362678.png

What should happen if BOTH intervals are greater than 12 months?

HI @lbendlin 

thnx for helping. Really appreciate it.
If BOTH are greater the contract should be shown as well.
So if your measure 'Check' > 0, the contract should be shown. It works.

What do you mean with implicit measures disabled? I am not aware I disabled it. Always use by the way explicit measures.

Regards
Ron

You might have created a calculation group which automatically disables implicit measures which doesn't get undone even after deleting the group.





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

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.