Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.
Hi All.
I have simple data as follow. I want to sum up the Visit Amt if the Room Type is "ROOM".
Created this measure, Total VisitTime = CALCULATE(SUM('Table1'[VisitAmt]),FILTER('Table1', Table1'[Room Type]="ROOM"))
Acct Num | Date | Room Type | Visit Amt |
1 | 8/1/2022 | ROOM | 37 |
2 | 8/1/2022 | ROOM | 53 |
3 | 8/1/2022 | Living | 68 |
4 | 8/1/2022 | ROOM | 41 |
5 | 8/2/2022 | ROOM | 61 |
6 | 8/2/2022 | ROOM | 52 |
7 | 8/2/2022 | Conference | 67 |
8 | 8/2/2022 | Conference | 40 |
9 | 8/2/2022 | ROOM | 98 |
10 | 8/2/2022 | ROOM | 73 |
11 | 8/3/2022 | ROOM | 78 |
12 | 8/3/2022 | Conference | 65 |
13 | 8/3/2022 | Living | 54 |
14 | 8/3/2022 | ROOM | 61 |
15 | 8/4/2022 | ROOM | 40 |
16 | 8/4/2022 | ROOM | 78 |
17 | 8/4/2022 | ROOM | 34 |
18 | 8/4/2022 | ROOM | 67 |
19 | 8/4/2022 | ROOM | 58 |
Total | 1,125 | ||
Ideally should look like this... I'm getting something different when pushing in table or matrix giving the total for listed date.
Solved! Go to Solution.
Hi Tevon,
I tried recreating this using your data and my formulas seem to work, although they are no different from yours.
Only thing I can see is some minor differences in your syntax re apostrophes. Try my DAX below:
If still stuck I can either send you my PBIX where I tried this out, or you could send me yours for review?
Cheers
Hi,
You may download my PBI file from here.
Hope this helps.
Hi @Tevon713 ,
My test result is the same with @MDodds 's. An alternative, you can simply only select ROOM in the visual filter of Room Type column, and just put the VisitAmt column in the visual without a measure.
I attach my sample below for your reference.
Best Regards,
Community Support Team _ kalyj
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi Tevon,
I tried recreating this using your data and my formulas seem to work, although they are no different from yours.
Only thing I can see is some minor differences in your syntax re apostrophes. Try my DAX below:
If still stuck I can either send you my PBIX where I tried this out, or you could send me yours for review?
Cheers
Link to PBIX if helpful. Cheers
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.
User | Count |
---|---|
80 | |
40 | |
31 | |
27 | |
27 |