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

Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now

Reply
Anonymous
Not applicable

Graphs

asgar_gormalone_0-1695278442352.png

when a garph is not data, how to remove the axis labels in powerbi.

Can anyone please help me with this

1 ACCEPTED SOLUTION
Anonymous
Not applicable

I think i got the solution for my specific case:

asgar_gormalone_0-1695286397669.pngasgar_gormalone_1-1695286426494.png

 

asgar_gormalone_0-1695287847709.png

 

View solution in original post

11 REPLIES 11
Anonymous
Not applicable

I think i got the solution for my specific case:

asgar_gormalone_0-1695286397669.pngasgar_gormalone_1-1695286426494.png

 

asgar_gormalone_0-1695287847709.png

 

@Anonymous , Do put the dax expression and mark it as solution if anyone encounter the same problem/doubt.

Anonymous
Not applicable

@ChiragGarg2512  i have used the advanced function available in text in axis and it worked for my requirement

asgar_gormalone_0-1695287804994.png

 

 

 

A measure can be created with if statement also. This can reduce the work getting put into formatting the other values. If statement will return white for blank values and blank for any other values.

Idrissshatila
Super User
Super User

Hello @Anonymous ,

 

Switch the titles off in both x-axis and y-axis.

Idrissshatila_0-1695279529182.png

 

 

If I answered your question, please mark my post as solution, Appreciate your Kudos 👍

Follow me on Linkedin
Vote for my Community Mobile App Idea 💡



Did I answer your question? Mark my post as a solution! Appreciate your Kudos
Follow me on LinkedIn linkedIn
Vote for my Community Mobile App Idea

Proud to be a Super User!




ChiragGarg2512
Super User
Super User

The axis labels are not dynamic. If the requirement is to remove the labels all together, go to format visual -> X-axis/Y-axis -> Title(off).

Anonymous
Not applicable

in this section only, i found one obtion conditional fomat obtion below:

asgar_gormalone_0-1695280399868.png


how can i use measure in the below section in powerbi, suppose i am creating any measure which will count the the rows, and if rows are blank it will show blank and titile will be shown in white colour and if row have data the then measure color will be black

asgar_gormalone_1-1695280762842.png

 

@CaptainCowell  can you please look into it, i think you can help me in this

Yes, that will work. That is great catch.

1) Need to create a measure that will count the number of rows in the data. [measure]

2) Another measure that will work on switch function. 

    For Ex., measure1 = switch([measure], 0, "White")

3) Apply this to conditional formatting in X-axis. {Field value -> Select [measure]}

 

That is great observation. Nice work @Anonymous 

Anonymous
Not applicable

ok if graph axis is not dynamic like i have specific requirement to remove the axis label, when i am selecting any  filter and not showing any data, which visual is best in this situation

It depends on the output data type. If the output is continous over time, a line visual works. If its going to be just a text/numeric value card visual is great. For comparing value for different categories clustered column chart works well.

vs_7
Continued Contributor
Continued Contributor

Hi @Anonymous ,

remove from filter visual options

Helpful resources

Announcements
OCT PBI Update Carousel

Power BI Monthly Update - October 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

October NL Carousel

Fabric Community Update - October 2024

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