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

Total needs to be different than sum of rows

Hi,

 

Issue with a matrix visual.

 

Business requirement :

Show budget per region, but total needs to include an adjustment.

I do not want to show the adjustement as a line (because no other data is attached) but just in the total.

 

ex

RegionQ1Q2

A

5050
B5050
Total (A + B + (non region adjustement))125130

 

 

Thank you !

 

I can't figure it out

 

1 ACCEPTED SOLUTION

@qmartiny 

 

Can you add your corrected measure to the table as a new Value and check that the result is correct?

 

Just to illustrate how ISINSCOPE works, see this:

Setup.png

 

 





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






View solution in original post

9 REPLIES 9
v-eachen-msft
Community Support
Community Support

Hi @qmartiny ,

 

You could use ISINSCOPE() to custom your total row.

IF(ISINSCOPE('Table'[Region]),normal data,total data)

 

Community Support Team _ Eads
If this post helps, then please consider Accept it as the solution to help the other members find it.

Hello,

 

Doing exactly that it seems

Global comped refers to a different table than the Budget one but I tried with the key from the budget table as well with no luck.

 

IF(ISINSCOPE(Global_comped[Global_comped]),SUM(V1Budget[FY20]),(SUM(V1Budget[FY20])+61))

 

Thank you for your help !!

@qmartiny 

Is this field "Global_comped[Global_comped]" the field you are using in your visual? (the field in your visual needs to be the same as the one in the ISINSCOPE function)





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






Hi Paul,

 

yes that's correct. 

And theres a 1-1 relationship between my 'global comped' table (condensed region names) and the region names in the budget table

 

 

 

 

@qmartiny 

 

Can you add your corrected measure to the table as a new Value and check that the result is correct?

 

Just to illustrate how ISINSCOPE works, see this:

Setup.png

 

 





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






Hi,


Seems to work if I put a hard value instead of (sum+x) in the second part of the formula.

 

That will do for now

 

Thank you!

Greg_Deckler
Super User
Super User

You probably need to create a measure and then use the technique here:


Quick Measure, Measure Totals, The Final Word should get you what you need:
https://community.powerbi.com/t5/Quick-Measures-Gallery/Measure-Totals-The-Final-Word/m-p/547907



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...
amitchandak
Super User
Super User

You have to try like

 

measure =if(ISFILTERED('Table'[Region])	,sum(Table[Value]),sum(Table[Value])+25)
OR
measure =if(ISFILTERED('Table'[Region])	,sum(Table[Value]),sum(Table[unadjusted Value]))

 

Also refer :https://powerpivotpro.com/2013/03/hasonevalue-vs-isfiltered-vs-hasonefilter/

Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution.
In case it does not help, please provide additional information and mark me with @

Thanks. My Recent Blogs -Decoding Direct Query - Time Intelligence, Winner Coloring on MAP, HR Analytics, Power BI Working with Non-Standard TimeAnd Comparing Data Across Date Ranges
Proud to be a Datanaut Connect on Linkedin

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

Hi Amit,

 

I tried as outlined with a test value but it seems like the total did not change.

 

Any idea why ?

 

 

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.