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
jordanesqu
Frequent Visitor

Subtotal based on calculated rows

Hello,

I have the below data displayed for 3 consecutive months (NND, NND-1, NND-2).

NND for single period calculates as "Availability"/"Client" and results either 0 or 100.

Subtotal result is equal to positive evaluated clients / all evaluated clients. For instance "NND-2" = 7/8=88.

NND for three periods together calculate the same way with only difference "If at least once in last three periods Availability is positive then result is positive" 

I calculated the "Availabilty 3M" as follows

  • I sum up NND+NND-1+NND-2
  • If the above sum is >=1 than 1

The problem is I do not receive a subtotal for Availability 3M  (in this case 11) but 1 according to sum if function.

Could anyone help to solve that? my expected end result would be:

Availabilty 3M = 11

Client 3M = 12

NND 3M Total =11/12 = 92

 
 
 
 
 

NND_subtotal.JPG

Thanks

Jordan

 

 

3 REPLIES 3

Hi @jordanesqu ,

 

was your problem solved?

 

 

Did I answer your question?
Please mark my post as solution, this will also help others.
Please give Kudos for support.

Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast


amitchandak
Super User
Super User

@jordanesqu , can you share formula

You have to try something like

sumx(summarize(Table,Table[Customer_Lv1,Table[Customer], "_1",[Availabilty 3M]),[_1])

Thanks for the tip. I have however more dimensions like region, sales manager, sales rep, material, customer and would like it work flexible depending on selection. in this case sumx did not work for me.

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.