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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
v-stephen-msft
Community Support
Community Support

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

v-stephen-msft
Community Support
Community Support

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
Super User
Super User

@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!:
The Definitive Guide to Power Query (M)

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

Top Solution Authors
Top Kudoed Authors