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
I really want to ask that Is there any way to pass measure in field parameter instead of normal measure
For example
Thankyou
Best Regard
firstch
Solved! Go to Solution.
@firstch
Cannot think of a more efficient approach than this but should work. Incoorporate this code within your measure
VAR __PARAM = SELECTEDVALUE( Parameter[Parameter Order] )
RETURN
SWITCH(
TRUE(),
[Filed Measure 1] = __MAXSALES && __PARAM = 0 , "COLOR CODE1",
[Field Measure 2] = __MAXSALES && __PARAM = 1 , "COLOR CODE1",
"COLOR CODE2"
)
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
@firstch
Cannot think of a more efficient approach than this but should work. Incoorporate this code within your measure
VAR __PARAM = SELECTEDVALUE( Parameter[Parameter Order] )
RETURN
SWITCH(
TRUE(),
[Filed Measure 1] = __MAXSALES && __PARAM = 0 , "COLOR CODE1",
[Field Measure 2] = __MAXSALES && __PARAM = 1 , "COLOR CODE1",
"COLOR CODE2"
)
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
User | Count |
---|---|
27 | |
12 | |
8 | |
8 | |
5 |
User | Count |
---|---|
31 | |
15 | |
12 | |
8 | |
7 |