The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi all please help me how to write dax for check , if the slicer is select all show "-" ,if not show [measure]
thank you in advance
Best Regard
firstch
@firstch , assume Column is used in slicer
Measure 1=
var _check = calculate(isfiltered(Table[Column]) , allselected())
return
if(_check, [Measure], blank())
or
Measure 1=
var _check = calculate(isfiltered(Table[Column]) , allselected())
return
if(_check, [Measure] & "" , "-")
User | Count |
---|---|
10 | |
9 | |
6 | |
6 | |
5 |
User | Count |
---|---|
20 | |
15 | |
14 | |
9 | |
7 |