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
ripstaur
Helper III
Helper III

How do I take the extra space out of the top of a card?

I am trying to replicate a card that looks like this in Tableau: 

ripstaur_0-1605204451142.png

I have gotten pretty close in Power BI, but it wants to leave more space at the top and bottom:

 

ripstaur_1-1605204597080.png

I cannot seem to get the text centerd in the box, or get rid of the space at the top. When I try to drag the bottom of the card up to shorten it, it leaves the space at the top and cuts the text off. There must be a way to do this...what is it? 

 

Thanks!

 

10 REPLIES 10
aanchalvazir
Frequent Visitor

Hi @ripstaur - it might have to do with the padding property of your visual. Under the formatting pane in Power BI Desktop, you can easily reduce the padding to "0 px". I hope this solves the issue for you.

ripstaur
Helper III
Helper III

Thanks to all who tried to help. None of this worked. I will just live with it. 

v-yingjl
Community Support
Community Support

Hi @ripstaur ,

Based on my test, seems could not reproduce it in my environment. When I reduced the size of the KPI, it works normal.

In KPI visual, you can adjust the title and value's position to center, and the size of the internal space will change with the size of the visual. We can adjust the title and value's font size to adapt the KPI size.

 

If not help, maybe you can consider sharing a 'problem' sample file for further discussion.

 

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

ripstaur
Helper III
Helper III

I will give that a try...I'll let you know if it works. 

Sorry, Namish...that did not help. If you look at the second screen shot above, the text in the KPI card is high (vertically) within the card itself as it will go. There seems to be a blank space above the number that cannot be used. What I want to do is end up with the text centered vertically within the card, with minimal space or padding above and below the number and the category label. I can't get there now, because the text can't move up in the card. 

ripstaur
Helper III
Helper III

So that might not work for what I'm trying to do. I'm trying to work the spacing inside the KPI card. 

Hi @ripstaur - Inside KPI Card Space will not work directly. You have to custom the visual using text box and layers of data(Or KPI Card) on top and make it look like a KPI visual with least white space at top/Bottom.

Just an example of displaying a measure in KPI Card (94) which is sitting on rectangle in the background 

NamishB_0-1605211135682.png

Cheers,

-Namish B   

ripstaur
Helper III
Helper III

Thanks, Namish. To be clear, you are suggesting using rectangles instead of cards? 

Hi @ripstaur - Sorry I mean you can put background as a rectangle and top visual can be anything including KPI card.

Hope this helps.

 

Cheers,

-Namish B

NamishB
Post Prodigy
Post Prodigy

Hi @ripstaur - I know of a silly work around may be there is a better way to do this:

Insert a Shape > Rectangle of whatever size you want. Enable border. This acts as your bigger rectangle  

Now, Your actual visual containing value should sit on top of this. Without enabling border. You can leave whatever room in top/bottom in that case.

Below example: has 2 visuals:

 

NamishB_0-1605206561768.png  

 

NamishB_2-1605206608220.png

 

You can fit 'n' number of visuals on this canvas. Hope this helps. 🙂

 

Cheers,

-Namish B 

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.