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
Rigolleto
Resolver I
Resolver I

Sum up a previous record

Hi,

 

I need some logic to read a previous record, as the screenshot shown, you ca notice that my data is gruped by, deparment, Buyername, attribute(Name of the week) and Years(NOTICE that there are two years), I would like to sume up the value column base in this grouping and create a new coulmn with the value, for instance:

24-HENDRICKSON, SAMUEL-(2019/2018)-541,353(this is the new coulmn calulated, will not be a big deal for me if this value is duplocated for every year

 

Any comment or help!!!!

 

Thanks in advance

 

 

grouping.png

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

@Rigolleto ,

 

Have you solved your issue by now? If you have, could you please help mark the correct answer to finish the thread? Your contribution will be much appreciated.

 

Regards,

Jimmy Tao

View solution in original post

3 REPLIES 3
v-yuta-msft
Community Support
Community Support

@Rigolleto ,

 

Have you solved your issue by now? If you have, could you please help mark the correct answer to finish the thread? Your contribution will be much appreciated.

 

Regards,

Jimmy Tao

v-yuta-msft
Community Support
Community Support

@Rigolleto ,

 

You can create a measure using DAX below:

Total =
CALCULATE (
    SUM ( Table[Value] ),
    ALLEXCEPT (
        Table,
        Table[DEPARTMENTDESC],
        Table[BUYERNAME],
        Table[Attribute],
        Table[Years]
    )
)

Community Support Team _ Jimmy Tao

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

Greg_Deckler
Super User
Super User

Can't be sure, but this strikes me as an EARLIER issue. See my article on Mean Time Between Failure (MTBF) which uses EARLIER: http://community.powerbi.com/t5/Community-Blog/Mean-Time-Between-Failure-MTBF-and-Power-BI/ba-p/3395...


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.