Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
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
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 19 | |
| 13 | |
| 8 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 29 | |
| 19 | |
| 18 | |
| 11 | |
| 10 |