Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hi team,
I am stuck with dax to calculate the total sum for a dealer sales for the promotional period. sample data is below.
end result required is for dealer 5032917 total sum would be $36000.
There will be dealer sales after the end of promotionla period which is not requirted to be calculated.
Thanks in advance.
Dealer | Start | End | value |
5032917 | 1/10/2022 | 21/10/2022 | $12,000 |
5032917 | 1/07/2023 | 28/07/2023 | $12,000 |
5032917 | 1/09/2022 | 15/09/2022 | $12,000 |
Solved! Go to Solution.
Hi @SachinFG ,
Calculated column.
Column =
SUMX(
FILTER(ALL('Table'),
'Table'[Dealer]=EARLIER('Table'[Dealer])),[value])
measure.
Measure =
SUMX(
FILTER(ALL('Table'),
'Table'[Dealer]=MAX('Table'[Dealer])),[value])
Result:
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Hi @SachinFG ,
Calculated column.
Column =
SUMX(
FILTER(ALL('Table'),
'Table'[Dealer]=EARLIER('Table'[Dealer])),[value])
measure.
Measure =
SUMX(
FILTER(ALL('Table'),
'Table'[Dealer]=MAX('Table'[Dealer])),[value])
Result:
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
13 | |
12 | |
12 | |
7 | |
7 |
User | Count |
---|---|
19 | |
14 | |
11 | |
10 | |
10 |