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 August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Filter column based on another column value

Hi every one,

 

I need help from experts in power bi as i'm new into it.

I have 3 columns: Date, budget 1 and budget forcast. That's is the reason why the values of  the date column go until 2070 but forcast ends up in 2030.
I'm trying do to a histogram since the start date (2001) till (2030). Can someone help me to figure out the dax code?aide.PNG

 

4 REPLIES 4
Anonymous
Not applicable

Hi @Anonymous ,


Could you tell me if your problem has been solved?
If it is, kindly Accept it as the solution. More people will benefit from it.
Or you are still confused about it, please provide me with more details about your problem.


Best Regards,
Stephen Tao

Anonymous
Not applicable

Hi @Anonymous ,

 

In your visual, have you selected Show items with no data in the date column?

4.png

If you choose, please cancel it, and the ones with no value from 2030 to 2070 will disappear.

 

 

 

Best Regards,

Stephen Tao

 

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

Greg_Deckler
Community Champion
Community Champion

@Anonymous Can you not just filter the visual for 2030 or less? Otherwise, if you return BLANK for your measures the extra dates shouldn't show up.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

Thanks for the idea. It is possioble to it that way but I'm not sure if the client will be satisfied with that option. That's why I was hoping that there's a way to resolve it by a dax code. 

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.

Top Solution Authors