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
sdhn
Responsive Resident
Responsive Resident

Card values on Dashboard

"Unique ID""Export""Import""In Percentage"
114458530.40
23431850.46
393199
418001
Total206110390.49

 

Hello All,

 

I have calculate "In Percentage" values as (Export - Import) / Export.

I want to display to values "In Percentage" in  card visulas of my Power Bi dashbaord.

 

By default for Total is adding up values "101.364" instead of showing Total "In Percentage" 0.49.

 

Any help will be appreciated.  

 

 

1 ACCEPTED SOLUTION

Hi @sdhn !

 

These are 3 different measures;

1st Measure:

_Export = SUM(Table[Export])

 

2nd Measure:

_Improt = SUM(Table[Import])

 

3rd Measure:

In Percentage = DIVIDE(([_Export] - [_Import]), [_Export], 1)

 

You can change Table with your table name.

 

Regards,

Hasham

View solution in original post

4 REPLIES 4
sdhn
Responsive Resident
Responsive Resident

Thanks Hasham 

HashamNiaz
Solution Sage
Solution Sage

Hi @sdhn !

 

Please use following 3 measures to calcuate Import / Export and In Percentage;

 

_Export = SUM(Table[Export])

_Import = SUM(Table[Import])

In Percentage = DIVIDE(([_Export] - [_Import]), [_Export], 1)

 

Hope this will solve your issue.

 

Regards,

Hasham

sdhn
Responsive Resident
Responsive Resident

 

I used measure as:

INV= SUM(TABLE[Export]) Import = SUM(TABLE[Import]) In Percentage = DIVIDE(([Export] - [Import]), [Export], 1)

 

The syntax for 'Import' is incorrect. (DAX(SUM(TABLE[Export]) Import = SUM(TABLE[Import]) In Percentage = DIVIDE(([Export] - [Import]), [Export], 1) )).

 

 

Hi @sdhn !

 

These are 3 different measures;

1st Measure:

_Export = SUM(Table[Export])

 

2nd Measure:

_Improt = SUM(Table[Import])

 

3rd Measure:

In Percentage = DIVIDE(([_Export] - [_Import]), [_Export], 1)

 

You can change Table with your table name.

 

Regards,

Hasham

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.