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
Anonymous
Not applicable

Force x axis value to appear from dimension table w/o value in fact table?

Is there anyway to "Force" the values on the x axis to appear from one (dimension) table, even if there are no values by which to count by for that particular dimension on a fact table?

 

So say my dimension table has years and quarters historically. And then say my fact table then has a measure for all years/quarters except a few of them. Right now Power BI will automatically remove the year/quarter dimensions for which no row exists in the fact table. Is there a way to show these year/quarters on the x axis with just a zero measure?

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Solved my own problem. I turned the original measure into a variable, returned that variable then used IF and ISBLANK functions to test if a value existed, if it didn't, it would return a 0, otherwise it would return the correct measure.

 

e.g. IF(ISBLANK(SUM(Measure)),0,SUM(Measure))

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Solved my own problem. I turned the original measure into a variable, returned that variable then used IF and ISBLANK functions to test if a value existed, if it didn't, it would return a 0, otherwise it would return the correct measure.

 

e.g. IF(ISBLANK(SUM(Measure)),0,SUM(Measure))

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.