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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! 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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 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.

Top Solution Authors