cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Frequent Visitor

Subtraction between levels

Hi, 

 

I have table with several levels.

 

Is it possible to subtract from total value from column "B" every value from column "A" to get results as in column "C" with measure on all levels not only in totals?

 

 

tbl.png

1 ACCEPTED SOLUTION
Super User IV
Super User IV

@sergey_t , Try  like a measure

calculate(sum(Table[A]), allexcept(Table[Level])) -calculate(sum(Table[A]), filter(Allselected, Table[Level] =max(Table[Level]) && Table[Level] =max(Table[Level])
&& Table[Level1] < max(Table[Level1] )))



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!

View solution in original post

1 REPLY 1
Super User IV
Super User IV

@sergey_t , Try  like a measure

calculate(sum(Table[A]), allexcept(Table[Level])) -calculate(sum(Table[A]), filter(Allselected, Table[Level] =max(Table[Level]) && Table[Level] =max(Table[Level])
&& Table[Level1] < max(Table[Level1] )))



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!

View solution in original post

Helpful resources

Announcements
secondImage

Congratulations!

We are excited to announce the Power BI Super Users!

Microsoft Ignite

Microsoft Ignite with Arun Ulag

Featured Session: Drive Data Culture with Power BI- Vision, Strategy & Roadmap. Register here https://myignite.microsoft.com #MSIgnite #PowerPlatform #Power BI ​

Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

secondImage

The largest Power BI virtual conference

100+ sessions, 100+ speakers, Product managers, MVPs, and experts. All about Power BI. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors