cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

Help Creating Calculated Column for Total Category Value

Hello, I need help created a static column for Total Category Value.

I only need the total category value for 1 Quarter in my entire data set.(ex: Q2) and mark rest as 0 value.

Quarter(text)        Category(text)         Sub-Category #(Text)                Value(#)                    Category Total (#)
Q1Fruit123 $   15.00 0
Q1Fruit12 $   20.000
Q1Vegetable156 $   10.00 0
Q1Vegetable152 $   20.00 0
Q2Vegetable2525 $   30.00 $               80.00
Q2Vegetable2512 $   50.00 $               80.00
Q2Fruit6433 $   10.00 $               10.00
Q3Vegetable347 $   20.00 0
Q3Vegetable3636 $   15.00 0
Q3Vegetable98 $   20.00 0
Q3Fruit6596 $   30.00 0
Q3Fruit272 $   40.000
Q4Vegetable13 $   50.00 0
Q4Fruit167 $   30.000
Q4Vegetable156 $   10.00 0

 

Thanks for the suggestions!

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super User IV
Super User IV

@asalazarjr , Try a new column like

if([Quarter] ="Q2", sumx(filter(table,[Quarter] = earlier([Quarter]) && [Category] = earlier([Category])),[Value]))



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!

View solution in original post

3 REPLIES 3
Highlighted
Super User III
Super User III

You can use this column expression to do that

 

Total Category =
IF (
    Table[Quarter(text)] = "Q2",
    CALCULATE (
        SUM ( Table[Value(#)] ),
        ALLEXCEPT (
            Table,
            Table[Quarter(text)],
            Table[Category(text)]
        )
    ),
    0
)

 

Regards,

Pat

 





Did I answer your question? Please mark my post as a solution! Kudos are also appreciated!

Proud to be a Super User!




Highlighted
Super User IV
Super User IV

@asalazarjr , Try a new column like

if([Quarter] ="Q2", sumx(filter(table,[Quarter] = earlier([Quarter]) && [Category] = earlier([Category])),[Value]))



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!

View solution in original post

Highlighted
Community Support
Community Support

Hi @asalazarjr ,

 

Please let us know if the replies above are helpful.

 

If they are, please always accept the replies making sense as solution to your question so that people who may have the same question can get the solution directly.

 

If not, please give us more details.

 

 

Best Regards,

Icey

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Community Conference

Microsoft Power Platform Communities

Check out the Winners!

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors