Forum Discussion

nor303's avatar
nor303
Helper III
2 years ago

Seeking Optimal Approach: Creating Visuals for Clustered Column Chart

I'm facing a challenge in creating a visual representation of the attached clustered column chart. Currently, I've managed to address this by generating multiple sheets in Excel, which I subsequently import into Power BI Desktop. These sheets calculate reductions of 10%, 15%, and 25%. I introduce an additional column and compute the following: -10% = Loan / Value * 0.9. Subsequently, I utilize this LTV value to formulate a new column for the LTV Interval: Under 40%, 40%-60%, and so on.

Furthermore, I have a helper table linked to both sheets, wherein I've established categories like Under 40%, 40%-60%, etc.

Within the clustered column visual, I employ the Under 40% category from the helper table on the X-axis, and the Loan values from the various sheets on the Y-axis.
Original sheet

LoanValueLTVLTV Interval
11200,5540%-60%
5,5150,37Under 40%
10101Over 100%

 

Calculated sheet

LoanValue - 10%LTVLTV Interval
1120*0,9=180,6160%-70%
5,515*0,9=13,50,4140%-60%
1010*0,9=91,11Over 100%

 

Value -15% etc generates the following visual:

This workflow has proven to be intricate and resource-intensive, leading to an accumulation of extraneous data and Excel sheets. Could this procedure be streamlined through the use of measures instead? It's worth noting that I have attempted this approach, but encountered a challenge where the Loan value exclusively referred to categories like "Under 40%", resulting in unintended outcomes when applying a subtraction of 10%.

 

For the sake of precision, it's essential that the total Loan remains consistent across all three scenarios. These scenarios should only shift within the different intervals as the Value parameter changes. Consequently, summing up the columns for the diverse scenarios should yield a consistent total sum.

Is there a more efficient approach to resolve this matter, while preserving accuracy and optimizing resource utilization?

 

 

 

 

 

9 Replies

  • Is there anything stopping you having all the columns in the same table.  i.e. you have one table with the following columns:

    Loan

    Value

    LTV

    LTV Interval

    Value (10% reduction)

    LTV (10% reduction)

    LTV Interval (10% reduction)

    Value (15% reduction)

    LTV (15% reduction)

    LTV Interval (15% reduction)

    Value (25% reduction)

    LTV (25% reduction)

    LTV Interval (25% reduction)

     

    At the very least this would keep everything on one Excel sheet.  Even better, you could then have all the calculated columns set up as steps in the Power Query instead, so you're not calculating anything extra in Excel.

    • nor303's avatar
      nor303
      Helper III

      Hi 

      You're right and I have tried this. The problem occurs when I then want to present this as a visual like the clustered column chart which is based on the loan value. I have thought about making 3 equal loan value columns which are somehow linked to the different LTV Intervall columns, but I still dont have it completely figured out. I also tried so make som measures but then problem was that the measure only calculated on the total and then I got one answer for the whole dataset... So Im still searching for the best solution. 

  • Maybe restructure your data so it's more like this:

    LoanValueLTVLTV IntervalReduction Type
    11200.5540%-60%None
    1120 * 0.9CalculatedCalculated10%
    1120*0.85CalculatedCalculated15%
    1120*0.75CalculatedCalculated25%
    5.5150.3720%-40%None
    5.515*0.9CalculatedCalculated10%
    5.515*0.85CalculatedCalculated15%
    5.515*0.75CalculatedCalculated20%

    You could do this in Power Query by puling the same source multiple times & then appending them all together.

    • nor303's avatar
      nor303
      Helper III

      Im not sure that I follow what you are thinking... I need to calculated all the values with the same percentage, so that I can see what happens if all the values decreases with 10-15-25%. Hopefully you understand what I mean:) If you see my column chart you can see that I have 4 different bars with the original data and then the stressed values.

      • whitch's avatar
        whitch
        Resolver I

        Yes, so if your original table has 100 rows, then the table I'm proposing has 400 rows:

        100 rows for no reduction

        100 rows for 10%

        100 rows for 15%

        100 rows for 25%

        All stacked vertically in one table

        Then the values in your chart can just be SUM([Value]), legend is [Reduction Type] and x-axis is [LTV Interval].