Forum Discussion

JSebastianBN's avatar
JSebastianBN
Regular Visitor
7 months ago
Solved

Rows without data showing subtotals

Hi, below you can see my example (below the data):

The column "Sum of SP" has values at row values F and it computes the subtotals at row C levels and E levels.

The column "Sum of STSP" only has values only at row E levels, it does not have values in C or F rows. However, it replicates the E values values at the sublevels C and F. How can "Sum of STSP" show empty values for rows F and C? 

Thanks!

 

Below the data:

 

Table Capability:

 

CapabilityEpic
C1E1
C2E1
C3E2
C4E2
C5E2

 

Table EpicSTSP

 

EpicSTSP
E120
E20

 

Table Feature

 

FeaturesCapabilitySP
F1C110
F2C25
F3 2
F4C31
F5C14
F6C23

 

Model image

 

  • ryan_mayu's avatar
    ryan_mayu
    7 months ago

    JSebastianBN 

    You are welcome.

     

    If you want to compare STSP with SP, maybe you can remove the third level, since the comparison at that level is meaningless.


    If my solution works, please accept it and appreciate your kudos as well.

     

10 Replies

  • Please include, in a usable format, not an image, a small set of rows for each of the tables involved in your request and show the data model in a picture, so that we can import the tables in Power BI and reproduce the data model. The subset of rows you provide, even is just a subset of the original tables, must cover your issue or question completely. Alternatively, you can share your .pbix via some cloud service and paste the link here. Do not include sensitive information and do not include anything that is unrelated to the issue or question. Please show the expected outcome based on the sample data you provided and make sure, in case you show a Power BI visual, to clarify the columns used in the grouping sections of the visual.

     

    Need help uploading data? click here

     

    Want faster answers? click here

  • Looks like you have some problem within your relations in your model. You could use a measure like below as an example but I think it won't be a perfect solution here. It would be the best if you share a .pbix example.

     

    STSP =
    IF (
        ISINSCOPE ( 'Dim'[C] ) || ISINSCOPE ( 'Dim'[F] ),
        BLANK(),
        [Sum of STSP]
    )
  • JSebastianBN 

    We can use measure to show C as blank. However, it's better to find out the root cause.

    could you pls provide the sample data , not the matrix visual

      • ryan_mayu's avatar
        ryan_mayu
        Icon for Super User rankSuper User

        JSebastianBN 

        the data model is not very good. However, I am familiar to your business. So I can't tell you how to improve this. 

         

        To solve this problem, you can try to create a measure

         

        Measure = if(ISFILTERED(Feature[Features]),blank(),sum(EpicSTSP[STSP]))
         
         
        pls see the attachment below