Forum Discussion
Visual level filter based on counted values
- 6 years ago
Hi Sveina ,
what about using an IF and a COUNT expression?
For example:
Salary new = IF(COUNT(SalaryTable[Respondent])>5,[Salary],BLANK())
This way, the salary will be shown only if there are at least records in the current selection.
Let me know if this helps you.
Regards,
LC
Interested in Power BI templates? Check out my blog at www.finance-bi.com
Hi Sveina ,
what about using an IF and a COUNT expression?
For example:
Salary new = IF(COUNT(SalaryTable[Respondent])>5,[Salary],BLANK())
This way, the salary will be shown only if there are at least records in the current selection.
Let me know if this helps you.
Regards,
LC
Interested in Power BI templates? Check out my blog at www.finance-bi.com
- Sveina6 years agoFrequent Visitor
lc_finance thanks a lot.
I worked out with this version (just added an average calculation ahead of the second term)
New income = IF(COUNT(Table[Income]) >5;AVERAGE(Table[income]);BLANK())Thanks again, your advice was much appreciated!Regards
@Sveina- lc_finance6 years agoSolution Sage
Perfect! I am very glad this worked out for you.
Do not hesitate if you have any more questions.
Regards,
LC