March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hi good day,
Can anyone help me on my calculated column on how to arrived on my desired outcome.
Current Table
Desired Outcome adding calculated column
Thank you
Solved! Go to Solution.
Hi,
Please try something like below (the picture and the attached pbix file).
desired outcome CC =
SUMX (
FILTER (
SUMMARIZECOLUMNS (
data[date],
data[location],
data[trade],
data[week_no],
data[count]
),
data[date] = EARLIER ( data[date] )
&& data[location] = EARLIER ( data[location] )
),
data[count]
)
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
CALCULATE(SUMX(DISTINCT(data[count]), data[count]), ALLEXCEPT(data, data[date], data[location]))
But i suggest to use Remove duplicate in power query
CALCULATE(SUM(data[count]), ALLEXCEPT(data, data[date], data[location]))
Hi,
Please try something like below (the picture and the attached pbix file).
desired outcome CC =
SUMX (
FILTER (
SUMMARIZECOLUMNS (
data[date],
data[location],
data[trade],
data[week_no],
data[count]
),
data[date] = EARLIER ( data[date] )
&& data[location] = EARLIER ( data[location] )
),
data[count]
)
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
CALCULATE(SUMX(DISTINCT(data[count]), data[count]), ALLEXCEPT(data, data[date], data[location]))
But I suggest Remove duplicate in power query
CALCULATE(SUM(data[count]), ALLEXCEPT(data, data[date], data[location]))
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
129 | |
90 | |
75 | |
58 | |
53 |
User | Count |
---|---|
200 | |
104 | |
101 | |
67 | |
55 |