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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Dax expression

Hi

 

How to write DAX Expression in matrix table having multiple columns, in that we have two or three columns having blank vlaues , then remaining column which is having data should display color formatting (red, green, blue etc). Please help me.

 

Thanks

sreenivasa

5 REPLIES 5
vanessafvg
Super User
Super User

@Anonymous if you have blank values and you can add +0 at the end of your measure ie sum(columnname) + 0 or you can do an if(isblank(columnname),0,columnname)

 

for conditional formatting in the matix object use condition formatting and look at the different options according to your requirements in the settings





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




Anonymous
Not applicable

Hi

 

country    A     B    C

 

India       1      2     3

USA               8      3

UK           4            9

AUS        8     4     5

 

Above some data is blank in USA and UK columns , My scenario in USA 'A' is blank , USA B and C having values. The values which are showing B is 8 and C is 3 in USA should display any some color. How to write DAX Expression for this. Please help it.

 

Thanks

sreenivasa

 

 

Hi @Anonymous,

 

Did you mean if USA-A is blank, the USA-B and USA-C are colored or are colored by different colors? If so, I afraid this feature is on the way yet. Please vote this idea or create a new idea. 

 

Best Regards!

Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Hi

 

USA 'B' and 'C' both data should come red color.

 

Thanks

sreenivasa

Hi @Anonymous,

 

This isn't supported by now. Please vote the idea: better-conditional-formatting-tools.

 

Best Regards!

Dale

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

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors