Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
So I have the known issue of measure totals not showing, but canfigure out why.
The following measure works fine:
New customers over time =
var test = CALCULATE (
COUNTROWS (
FILTER (
CALCULATETABLE (
ADDCOLUMNS (
VALUES ( Sales[ID] ),
"DateOfFirstDeal", CALCULATE ( MIN ( Sales[Won Time]) )
),
ALL ( Dates )
),
CONTAINS ( VALUES ( Dates[Date] ), Dates[Date], [DateOfFirstDeal] )
)
),
FILTER ( Sales, Sales[Won Time] <> BLANK () )
)
return
test
However, i then add a filter to my calculate table, and that causes the totals to not show:
New customers over time =
var test = CALCULATE (
COUNTROWS (
FILTER (
CALCULATETABLE (
ADDCOLUMNS (
VALUES ( Sales[ID] ),
"DateOfFirstDeal", CALCULATE ( MIN ( Sales[Won Time]) ,FILTER(Sales,Sales[Lost time]=BLANK()))
),
ALL ( Dates )
),
CONTAINS ( VALUES ( Dates[Date] ), Dates[Date], [DateOfFirstDeal] )
)
),
FILTER ( Sales, Sales[Won Time] <> BLANK () )
)
return
test
Why does this one added filter cause the total to not work?
Hi @Laila92 ,
Not very clear. The column total is not only the sum of each column, in fact the column total may also be calculated by measure. It's better to show some sample data and excepted result.
Best Regards,
Jay
@Laila92 What is [DateOfFirstDeal] and what does your data model look like?
Your measure looks slightly more complex than I think it may need to be, but I'm not sure exactly what you're trying to calculate?
Copying DAX from this post? Click here for a hack to quickly replace it with your own table names
Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C
I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
78 | |
78 | |
59 | |
35 | |
33 |
User | Count |
---|---|
100 | |
62 | |
56 | |
47 | |
41 |