Forum Discussion
nit101
2 years agoFrequent Visitor
Calculating total from related dataset
Hi, I’m learning Power BI and I can’t work out how to get total from one of my datasets. I have 2 sliders – date uses vCalendar dataset and programme names uses vProgrammes dataset. My main repo...
nit101
2 years agoFrequent Visitor
Hi Anonymous Dino,
Sorry for the delay to your response. Your Dax is nearly what I what, it counts the total number of dates for a ProgrammeShortName, but I also need the date filter from the Slider. I thought this might work but it is not filtering on date:
TotalProgramDays =
CALCULATE(
COUNTROWS(VALUES(vProgrammeDeliveryDates[StartDate])),
FILTER(
ALL(vProgrammeDeliveryDates),
vProgrammeDeliveryDates[ProgrammeShortName] = ('vPivotAttendance-Participant'[PSN_ParticipantSingle])
&& vProgrammeDeliveryDates[StartDate] >= MINX( 'vCalendar', vCalendar[TheDate] )
&& vProgrammeDeliveryDates[StartDate] <= MAXX( 'vCalendar', vCalendar[TheDate] )
)
)
vCalendar is a standard date dataset that lists all dates for the slider.
I'm working on getting your test data - reducing the dataset size for you.
Thank you for your help.
- nit1012 years agoFrequent Visitor
Hi Anonymous / lbendlin
I have shared my report and sampl data in Dropbox folder:
https://www.dropbox.com/scl/fo/1ddo4r40c04hkuvl4ua5i/h?rlkey=vdko20yqtg2ujyfl2q7zrs1b8&dl=0
Thanks in advance for helping
- lbendlin2 years ago
Super User
link asks for credentials
- nit1012 years agoFrequent Visitor
Sorry, try this link https://www.dropbox.com/scl/fo/qarzjxz62v3107u7mtzer/h?rlkey=3ufoqgghg66mdbh3dcg7bdcoj&dl=0