Measure not showing totals in table

john316swan

Board Regular
Joined
Oct 13, 2016
Messages
66
Office Version
  1. 2019
Platform
  1. Windows
I have a measure but it's not showing totals in the table totals at the bottom, here is the dax formula:

Total Packages =
CALCULATE(
COUNTROWS(CAMS),
CAMS[Awarded] = 1,
FILTER(
ALL('SF'),
'SF'[Jessup Program Type] = SELECTEDVALUE('SF'[Jessup Program Type]) &&
'SF'[Application Level] = SELECTEDVALUE('SF'[Application Level]) &&
'SF'[campus] = SELECTEDVALUE('SF'[campus])
)
)
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
SELECTEDVALUE returns BLANK by default if there isn't one distinct value applicable, which is probably the case at the grand total level.
 
Upvote 0
Why are you using SELECTEDVALUE in the measure?
 
Upvote 0
That was how I got the values to actually show, I'm a newb to pbi/dax and I am pulling data from Salesforce and a sql connection and after messing around that's how I was able to get the values to show in the table.
 
Upvote 0
What do you get with just:

Total Packages =
CALCULATE(
COUNTROWS(CAMS),
CAMS[Awarded] = 1)
 
Upvote 0
That sounds like you possibly don't have the right relationships set up between the CAMS and SF tables.
 
Upvote 0
1689352678160.png


I feel like it's a pretty basic report, one-to-one relationship with only student id.
 
Upvote 0
That looks OK assuming you do have a 1:1 relationship. Any chance you can post a link to the pbix file?
 
Upvote 0

Forum statistics

Threads
1,223,947
Messages
6,175,562
Members
452,652
Latest member
eduedu

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top