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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
22LACMT
Helper III
Helper III

Dax expression

Im trying to create a new column that sums the exposure by date.  the date column has 5 unique dates  this column should likewise only show 5 diffent totals.  this is my expression and I am getting errors.  ? 

 

Totaltier1PIT1 = CALCULATE(sum('Portfolio Percentage totals PIT'[Tier1Exposure]), 'Portfolio Percentage totals PIT'[ver])
 
sample 22LACMT_0-1666286597298.png

 

2 ACCEPTED SOLUTIONS
Samarth_18
Community Champion
Community Champion

Hi @22LACMT ,

 

You can create a column as below:-

 

Totaltier1PIT1 =
CALCULATE (
    SUM ( 'Portfolio Percentage totals PIT'[Tier1Exposure] ),
    FILTER (
        'Portfolio Percentage totals PIT',
        'Portfolio Percentage totals PIT'[ver]
            = EARLIER ( 'Portfolio Percentage totals PIT'[ver] )
    )
)

 

 

Best Regards,
Samarth

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin

View solution in original post

@22LACMT , Yes you can add additional column as filter in the expression.

Best Regards,
Samarth

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin

View solution in original post

4 REPLIES 4
Samarth_18
Community Champion
Community Champion

Hi @22LACMT ,

 

You can create a column as below:-

 

Totaltier1PIT1 =
CALCULATE (
    SUM ( 'Portfolio Percentage totals PIT'[Tier1Exposure] ),
    FILTER (
        'Portfolio Percentage totals PIT',
        'Portfolio Percentage totals PIT'[ver]
            = EARLIER ( 'Portfolio Percentage totals PIT'[ver] )
    )
)

 

 

Best Regards,
Samarth

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin

If I wanted to group the exposure by a category using a category column and point in time would I use the above and add an additional filter funtion for the category column? 

@22LACMT , Yes you can add additional column as filter in the expression.

Best Regards,
Samarth

If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin

Perfect thank you!

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.