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
SteveD
Advocate II
Advocate II

Constant Line loses its format

Hi,

I'm using a constant line that is dynamically calculated to represent the average state performance across all entities. As per the screenshot below, the measure uses a custom format to display duration in Days/Hours format and all works well until one of the quadrants doesn't have an entity to display in it and then the constant line displays but without its custom format.

SteveD_0-1651467587699.pngSteveD_1-1651467603860.png

 

Any ideas on why it loses its format? Also, given there's no entity to report on based upon the selection why is the constant line displaying? If I convert the 4 visuals to a single visual with the region as a small multiple, the constant line behaves that way.

 

1 ACCEPTED SOLUTION

Thanks for your help on this. I eventually opted for displaying the constant line when the Countrows(HubTable) > 0.  

View solution in original post

7 REPLIES 7
vanessafvg
Super User
Super User

Can I ask what it is you are expecting it to do when there is no data?  to be blank?  A little unsure of what you are asking can you explain what you expect to happen in the problematic quadrant.





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!




My preference would be for it to be blank as this is the behaviour when using small multiples.

can you not filter the blank  section out? its actually really hard to answer this question with the limited information you have given, i do not know how your data is modelled, i also do not know what your objective with the data is.   If you need a more detailed response you will need to give more information like

what your data looks like the sample data ie the model and a sample to understand why it is being displayed if no data is showing

what requirement you are trying to solve

assuming you are using the y axis constant line?





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!




Here is a link to a sample model that replicates the bug.

Hi, @SteveD 

Please add another table as below:

DivisionName = DISTINCT('Hub Table'[DivisionName])

1.png

2.png

Then use the field 'DivisionName' in this new table to replace your previous field to filter the data in your visuals.

Result:

3.png

 

Best Regards,
Community Support Team _ Eason

 

Thanks for your help on this. I eventually opted for displaying the constant line when the Countrows(HubTable) > 0.  

I have played around with your data a bit but I don't think it is possible to remove a constant line - it's affectively hard coding it.  so even when there isn't data the constant line isn't intelligent enough to not show as far as i can tell.





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!




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.