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

How to check for blank column and not to display in bar chart visualization !!!

Hello All,

 

I would like to know if there any possibility to do the following functionality from the single table which contains 5 fields.

 

DateMakerYearMonthField 1Field 2Field 3Field 4
1/1/2020Tesla20200199.70%  91.00%
2/1/2020Tesla20200289.00%  92.00%
3/1/2020Tesla202003100.00%  95.00%
4/1/2020Tesla20200499.80%  89.00%
5/1/2020Tesla20200591.00%  99.00%
6/1/2020Tesla20200692.00%  91.00%
7/1/2020Tesla20200795.00%  99.80%
8/1/2020Tesla20200889.00%  97.00%
9/1/2020Tesla20200991.00%  99.80%
10/1/2020Tesla20201099.80%  100.00%
11/1/2020Tesla20201197.00%  89.00%
12/1/2020Tesla20201299.80%  91.00%
1/1/2021Tesla202101100.00%  89.00%
2/1/2021Tesla20210299.00%  91.00%
3/1/2021Tesla20210390.00%  99.80%
4/1/2021Tesla20210493.00%  97.00%
1/1/2020Ford202001 91.00%91.00% 
2/1/2020Ford202002 99.80%92.00% 
3/1/2020Ford202003 97.00%95.00% 
4/1/2020Ford202004 99.80%89.00% 
5/1/2020Ford202005 100.00%99.00% 

 

1.  If i select Auto maker and yearmonth as ' Tesla' and ' 202101', I need to validate the fields from Field1, field2, field3 and field4 for blanks. Then i need to display only Field1 and Field 4 which has values and pass it to the chart. Which function to choose when writing in DAX? Do i need to use selected columns?

 

2. Also I need to display the value for 6 months based on the yearmonth selected. If i know how to validate non blank values and pass multiple columns to the chart, i can handle this scenario using MEASURE by filtering the date for 6 months range.

 

Kindly assist in this. Appreciate your time. 

1 ACCEPTED SOLUTION
Greg_Deckler
Community Champion
Community Champion

@Anonymous Unpivot your Field columns.



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...

View solution in original post

2 REPLIES 2
Greg_Deckler
Community Champion
Community Champion

@Anonymous Unpivot your Field columns.



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 prompt response. It works

🙂 

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.

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.