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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Henrik_99
Resolver I
Resolver I

Calculated columns -total subcat

Hi

 

How to convert measure to calculated column . I need Calculated column sum.

 

Appreciate your reply. Thanks

 

Capture.JPG

/Henrik

 

1 ACCEPTED SOLUTION
danextian
Super User
Super User

Hi @Henrik_99 ,

 

Try these:

=
CALCULATE ( SUM ( 'Table'[Planned] ), ALLEXCEPT ( 'Table', 'Table'[R53] ) )
=
CALCULATE (
    SUM ( 'Table'[Planned] ),
    FILTER ( ALL ( 'Table' ), 'Table'[R53] = EARLIER ( 'Table'[R53] ) )
)

 










Did I answer your question? Mark my post as a solution!


Proud to be a Super User!









"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

View solution in original post

3 REPLIES 3
Henrik_99
Resolver I
Resolver I

Hi, 

 

thanks I got what I need. Thank you.

 

Regards Henrik

Henrik_99
Resolver I
Resolver I

Hi,

 

sorry this gives the same results as Subtot.

 

I want R53_total as calculated columns e.g. total of subcategory.

 

Thanks.

 

Rgds

Henrik

 

danextian
Super User
Super User

Hi @Henrik_99 ,

 

Try these:

=
CALCULATE ( SUM ( 'Table'[Planned] ), ALLEXCEPT ( 'Table', 'Table'[R53] ) )
=
CALCULATE (
    SUM ( 'Table'[Planned] ),
    FILTER ( ALL ( 'Table' ), 'Table'[R53] = EARLIER ( 'Table'[R53] ) )
)

 










Did I answer your question? Mark my post as a solution!


Proud to be a Super User!









"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.