Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi All,
I'm currently working on a project that looks at the customer satisfaction rate.
The KPI card in blue currently has the following DAX formula:
M_Sum_Positive = DIVIDE(SUMX(FILTER(sentimental_value, sentimental_value[Sentiment]=5),sentimental_value[Occurances]),(SUM(sentimental_value[Occurances])))+0
The issue I am facing is that when the data parameter is adjusted on the top right of the dashboard. The KPI figures remain the same and do not adjust accordingly.
Q) How would I amend the DAX formula so that it takes into consideration the date parameters too
My calender table is:
Thank you in advance
Hi @amitchandak
Your solution that you provided is displaying an error;
A function 'FILTER' has been used in a True/False expression that is used as a table filter expression. This is not allowed.
Ive tried to amend to error myself but have not had any luck
@Anonymous , is lkp_calendar joined with any column of sentimental_value
then it should filter. Else add condition
M_Sum_Positive =
var _max = maxx(allselected(lkp_calendar ),lkp_calendar [Date])
var _min = minx(allselected(lkp_calendar ),lkp_calendar [Date])
return
calculate( DIVIDE(SUMX(FILTER(sentimental_value, sentimental_value[Sentiment]=5),sentimental_value[Occurances]),(SUM(sentimental_value[Occurances])))
, filter( sentimental_value, sentimental_value[Date] >=_min && sentimental_value, sentimental_value[Date] <= _max))
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.