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.
Guys, i hope you can help me out here.
I use this formula to calculate the SUM of a colum which contains values and it works but it's in the Date table
However i need it to work not just with numbers but with a countrows and ive already tried it but it doesn't seem to work in another Table.
Basically i have a colum that has a date in it if something was sold and now i need a running total measure based on a relationship between SALES and DATE but i think my formula is wrong
Solved! Go to Solution.
Hi @RonaldvdH
I build a sample to show you how to get running total from another table.
Sales:
Date:
Date =
ADDCOLUMNS (
CALENDARAUTO (),
"Year", YEAR ( [Date] ),
"Month", MONTH ( [Date] ),
"MonthName", FORMAT ( [Date], "MMMM" )
)
Relationship: Date[Date] —— Sales[SalesDate]
Measure:
Measure =
CALCULATE(
COUNTROWS(Sales),
FILTER(ALL('Date'),'Date'[Date]<=MAX('Date'[Date])),
FILTER(ALL(Sales),Sales[SalesDate] <>BLANK())
)+0
Blank in SalesDate column will cause blank in columns in Date table in visual, due to relationship. Remove blank in Date column in Filter Field. Result is as below.
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @RonaldvdH
I build a sample to show you how to get running total from another table.
Sales:
Date:
Date =
ADDCOLUMNS (
CALENDARAUTO (),
"Year", YEAR ( [Date] ),
"Month", MONTH ( [Date] ),
"MonthName", FORMAT ( [Date], "MMMM" )
)
Relationship: Date[Date] —— Sales[SalesDate]
Measure:
Measure =
CALCULATE(
COUNTROWS(Sales),
FILTER(ALL('Date'),'Date'[Date]<=MAX('Date'[Date])),
FILTER(ALL(Sales),Sales[SalesDate] <>BLANK())
)+0
Blank in SalesDate column will cause blank in columns in Date table in visual, due to relationship. Remove blank in Date column in Filter Field. Result is as below.
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
could you pls provide the sample data and expected output?
Proud to be a Super User!
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 |
---|---|
124 | |
79 | |
50 | |
38 | |
38 |
User | Count |
---|---|
195 | |
80 | |
70 | |
51 | |
42 |