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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
jcastr02
Post Prodigy
Post Prodigy

remove data from x axis if no data.

I have module exams that team members have taken, not all modules have the same number of questions.  I'd like the x axis to show the questions that are specific to it, so if first module has 36 questions. , only questions 1-36 should show, currently there is space showing and I'd like to remove it ..remove questions.png

3 REPLIES 3
dax
Community Support
Community Support

Hi @jcastr02 , 

It seems that you use other table's column as Axis, right? If so, I think you could use fact table directly in axis instead of refer to other table's column as axis. If possible could you please inform me more detailed information(such as your expected output and your sample data (by OneDrive for Business))? Then I will help you more correctly.

Please do mask sensitive data before uploading.

Thanks for your understanding and support.
Best Regards,
Zoe Zhi

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

amitchandak
Super User
Super User

@jcastr02 , for Both Avg Score and Score make the 0 value as blank of filter 0 rows at the visual level

 

Avg Score1 = Calculate([Avg Score],not(isblank([Avg Score])),[Avg Score]>0)
Score1 = Calculate([Score],not(isblank(Score])),[Score]>0)

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Greg_Deckler
Community Champion
Community Champion

Difficult to say without sample data but I am thinking that perhaps you need to change the direction of your relationship to Both instead of Single?


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

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors