Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
Anonymous
Not applicable

Need Help Inserting a Specially Formatted Table

Hi everyone,

 

Is it possible to place this type of table into Power BI? I would need the table to calculate one set of values, but with different formulas above and below the grey line. 

 

Example: Above the grey line needs to be values calculated by Formula #1 and below would calculated by Formula #2 (using the same set of values)

thumbnail_Screenshot_20200619-120711_Instagram.jpg

1 ACCEPTED SOLUTION
v-alq-msft
Community Support
Community Support

Hi, @Anonymous 

 

Based on your description, I created data to reproduce your scenario. The pbix file is attached in the end.

Table:

c1.PNG

 

You may go to 'Query Editor', click 'Add Column'=>'Index Column'.

c2.PNG

 

Then you may create a measure as below. The measure is to calculate the sum of each column value for each row. You may replace 1,0 with formula1 and formula2.

Result = 
var _index = SELECTEDVALUE('Table'[Index])
var _cash = 
IF(
    CALCULATE(
        SUM('Table'[Index]),
        FILTER(
            ALL('Table'),
            ISBLANK('Table'[Cash Mgmnt])
        )
    )<_index,
    1,0
)
var _finance = 
IF(
    CALCULATE(
        SUM('Table'[Index]),
        FILTER(
            ALL('Table'),
            ISBLANK('Table'[Finance])
        )
    )<_index,
    1,0
)
var _legal = 
IF(
    CALCULATE(
        SUM('Table'[Index]),
        FILTER(
            ALL('Table'),
            ISBLANK('Table'[Legal])
        )
    )<_index,
    1,0
)
var _loanops = 
IF(
    CALCULATE(
        SUM('Table'[Index]),
        FILTER(
            ALL('Table'),
            ISBLANK('Table'[Loan Ops])
        )
    )<_index,
    1,0
)
return
_cash+_finance+_legal+_loanops

 

Result:

c3.PNG

 

Best Reagrds

Allan

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
v-alq-msft
Community Support
Community Support

Hi, @Anonymous 

 

Based on your description, I created data to reproduce your scenario. The pbix file is attached in the end.

Table:

c1.PNG

 

You may go to 'Query Editor', click 'Add Column'=>'Index Column'.

c2.PNG

 

Then you may create a measure as below. The measure is to calculate the sum of each column value for each row. You may replace 1,0 with formula1 and formula2.

Result = 
var _index = SELECTEDVALUE('Table'[Index])
var _cash = 
IF(
    CALCULATE(
        SUM('Table'[Index]),
        FILTER(
            ALL('Table'),
            ISBLANK('Table'[Cash Mgmnt])
        )
    )<_index,
    1,0
)
var _finance = 
IF(
    CALCULATE(
        SUM('Table'[Index]),
        FILTER(
            ALL('Table'),
            ISBLANK('Table'[Finance])
        )
    )<_index,
    1,0
)
var _legal = 
IF(
    CALCULATE(
        SUM('Table'[Index]),
        FILTER(
            ALL('Table'),
            ISBLANK('Table'[Legal])
        )
    )<_index,
    1,0
)
var _loanops = 
IF(
    CALCULATE(
        SUM('Table'[Index]),
        FILTER(
            ALL('Table'),
            ISBLANK('Table'[Loan Ops])
        )
    )<_index,
    1,0
)
return
_cash+_finance+_legal+_loanops

 

Result:

c3.PNG

 

Best Reagrds

Allan

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

@v-alq-msft This is great thank you so much for your help! Appreciate it

parry2k
Super User
Super User

@Anonymous Read this post to get your answer quickly.

https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! It's time to submit your entry.

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.