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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Balaryan58
Frequent Visitor

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

@Balaryan58 Unpivot your Field columns.


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

View solution in original post

2 REPLIES 2
Greg_Deckler
Super User
Super User

@Balaryan58 Unpivot your Field columns.


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

Thanks for the prompt response. It works

🙂 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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