The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
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 |
---|---|
28 | |
11 | |
8 | |
6 | |
5 |
User | Count |
---|---|
35 | |
14 | |
12 | |
9 | |
7 |