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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

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. 

Anonymous
Not applicable

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? 

Anonymous
Not applicable

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

Anonymous
Not applicable

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.