Forum Discussion
ivasgal
4 years agoNew Member
Weekly Calculation Based on Date Filter
Hello Experts, I am new to Power BI and I'm struggling on creating a measurement that calculates how many inspections were done in the week based on what date the user selects in a slicer. I...
- Anonymous4 years ago
Hi ivasgal ,
Make sure the relationship between DataDump Table and Date Week Table is inactive.
You have weeknumber in the date week table so you could create a measure as below:
measure = calculate(counta(DataDump[rows]),filter(allselected(DataDump),weeknum(DataDump[inspections date],2) = selectedvalue(Date Week[week])))
Best Regards,
Jay
Anonymous
4 years agoNot applicable
Hi ivasgal ,
Make sure the relationship between DataDump Table and Date Week Table is inactive.
You have weeknumber in the date week table so you could create a measure as below:
measure = calculate(counta(DataDump[rows]),filter(allselected(DataDump),weeknum(DataDump[inspections date],2) = selectedvalue(Date Week[week])))
Best Regards,
Jay