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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
lebiodalukasz
Frequent Visitor

Measure calculation good in table but not does not calculate total outside the table.

 

Measure formula:

_Reimbursable Value (EUR)_ = if(ISBLANK([_Q.ty scrapped_]*[_Price MTMA (EUR/ KG)_]),0,[_Q.ty scrapped_]*[_Price MTMA (EUR/ KG)_])
 
It works and calculates correctly in the table but does not show the sum. How can I make this working?
problem1.PNG
when i select the row with data it shows me the same amount but i want the tile to show me the sum of all data from that table.
problem2.PNG
1 ACCEPTED SOLUTION
lebiodalukasz
Frequent Visitor

7 REPLIES 7
lebiodalukasz
Frequent Visitor

GOT IT RESOLVED FOLLOWING THIS:

 

https://www.youtube.com/watch?v=Rii_6qkLNh8

 

fhill
Resident Rockstar
Resident Rockstar

 

Check out this article about two possible options to help.  I use 'HASONEVALUE' quite often when I want a Card to show different results depending on a specific selection.  ISFILTERED may help also...

https://mitchellpearson.com/2018/09/24/hasonevalue-vs-isfiltered-in-dax/

 

Hope this helps point you in the right direction.

Forrest




Did I answer your question, or help you along the way?
Please give Kudos or Mark as a Solution!


https://www.linkedin.com/in/forrest-hill-04480730/

Proud to give back to the community!
Thank You!




Hi, thanks but when i look at those you sent they are related to a data in tables but my measure calculates 2 other measures - marked in blue and i can not use the formulas you sent me.

_Reimbursable Value (EUR)_ = if(ISBLANK([_Q.ty scrapped_]*[_Price MTMA (EUR/ KG)_]),0,[_Q.ty scrapped_]*[_Price MTMA (EUR/ KG)_]) 

Why not make your CARD a new Measure that's just SUM ( _Reimbursable Value (EUR)_ ).  When you click on just one line, is should FILTER to just that one value and just return _Reimbursable Value (EUR)_ ?




Did I answer your question, or help you along the way?
Please give Kudos or Mark as a Solution!


https://www.linkedin.com/in/forrest-hill-04480730/

Proud to give back to the community!
Thank You!




Because SUM does not work with measures. It works with columns and one again  - all columns where you can see _ at the beggining means that column values are made of measures.

ok, probably another bad idea.... what happens if you make your CARD just a measure of ([_Q.ty scrapped_]*[_Price MTMA (EUR/ KG)_]) ?    If every row Blanks, maybe it would just show 'null', but as long as one row has data, the Card 'shoudl' SUM the results.   (I think if I remember correctly, it would SUM all Qty Scrapped the * SUM all Price, not sure if that matters based on your data?)




Did I answer your question, or help you along the way?
Please give Kudos or Mark as a Solution!


https://www.linkedin.com/in/forrest-hill-04480730/

Proud to give back to the community!
Thank You!




i already tried and it does what it does now.

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

Find out what's new and trending in the Fabric Community.

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

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! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

Check out the November 2024 Power BI update to learn about new features.