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! Learn more
Hello,
I have a Table listing results of promotional activity with each line showing an event, Total Sales, Total Promo Volume, etc which are input as measures. I have another column in my dataset called "Include" with Yes/No values.
Dataset name: promo dbase
Measure Name "Total Sales"
I am trying to filter my table to show all results visually but only include values corresponding to a "Yes" value in the totals. Here is where I am stuck: Total Sales = CALCULATE(SUM('promo dbase'[Total Sales]),FILTER('promo dbase',(SEARCH("Yes",[Include]))))
Any help would be greatly appreciated!
Solved! Go to Solution.
Have you tried this simpler expression?
Total Sales = CALCULATE(SUM('promo dbase'[Total Sales]), 'promo dbase'[Include]="Yes")
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
Have you tried this simpler expression?
Total Sales = CALCULATE(SUM('promo dbase'[Total Sales]), 'promo dbase'[Include]="Yes")
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
Thank you! I modified it to show the values in the table even when they are not counted by wrapping it in an "IF" statement:
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.
| User | Count |
|---|---|
| 9 | |
| 5 | |
| 4 | |
| 4 | |
| 3 |
| User | Count |
|---|---|
| 13 | |
| 9 | |
| 9 | |
| 9 | |
| 8 |