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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
SandeepKumar123
Frequent Visitor

KPI Card for Gross Margin of Total Revenue

Hi Team,

I am preparing a KPI card to find GP against the Total Sales, but unable to get it.

 

Please help me for this.Screenshot 2023-10-22 205841.png

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @SandeepKumar123 ,

Please try ABS() function, this function will return the absolute value of a number.

vbinbinyumsft_0-1698112266989.png

 

For more details, you can read related document: ABS function (DAX) - DAX | Microsoft Learn

 

Best regards,
Community Support Team_Binbin Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @SandeepKumar123 ,

Please try ABS() function, this function will return the absolute value of a number.

vbinbinyumsft_0-1698112266989.png

 

For more details, you can read related document: ABS function (DAX) - DAX | Microsoft Learn

 

Best regards,
Community Support Team_Binbin Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

SandeepKumar123
Frequent Visitor

Ok, I have found it but the problem is (-) icon.

 

I need to remove the (-) from the percentage.

Screenshot 2023-10-22 211638.png

Helpful resources

Announcements
FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.