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.
Hello!
I am looking for some help.
My data is monthly instead of daily values. I want the total sales in each row, but I am just getting the same sales value:
What I want is:
Total Sales Value 18, 18, 18.
Here is my database table:
DateSalesCustomer
01.01.2020 | 5 | Kevin |
01.02.2020 | 6 | Devin |
01.03.2020 | 7 | Levin |
ie January, February, March.
It works when I am using daily sales values, but unfortunately the sales value for this project is only monthly. What can I do? Should I rebuild my database somehow? Sorry if this is too easy of a question, but I´ve read the documentation and cannot find out what is different with using monthly data.
Thank you
Corey
Solved! Go to Solution.
hi, @Anonymous
try below measure
Total Sales Value = CALCULATE(SUM('Table'[Sales]),ALLEXCEPT('Table','Table'[DateSalesCustomer]))
Hi @Anonymous ,
Here are the steps you can follow:
1. Create measure.
Measure =
var _sum=
CALCULATE(
SUM('Table'[Sales]),ALL('Table'))
return
SUMX(
VALUES('Table'),_sum)
2. 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, @Anonymous
try below measure
Total Sales Value = CALCULATE(SUM('Table'[Sales]),ALLEXCEPT('Table','Table'[DateSalesCustomer]))
User | Count |
---|---|
20 | |
14 | |
11 | |
8 | |
6 |
User | Count |
---|---|
23 | |
23 | |
20 | |
15 | |
10 |