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!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
I have a capabilities files with some measures in it.
"dataRoles": [
{
"displayName": "Chart 1 X-Axis",
"name": "chart1_X",
"kind": "Measure"
},
{
"displayName": "Chart 1 Y-Axis",
"name": "chart1_Y",
"kind": "Measure"
},
{
"displayName": "Chart 2 X-Axis",
"name": "chart2_X",
"kind": "Measure"
},
{
"displayName": "Chart 2 Y-Axis",
"name": "chart2_Y",
"kind": "Measure"
},
...
and I want to ad one datafield to multiple measures. But power bi sees the measure only onece.
I want to have at categories.values[2] params2 instead of TotalSegment. I read the Input via a loop and would like to have TotalSegment at categories.values[2].
Any hints help appreciated.
br
Solved! Go to Solution.
Hi @Anonymous,
It's great that you're thinking about this scenario from an end-user perspective and making sure that you have a path for it 🙂
From a data perspective, this is a limitation with Power BI that cannot be managed in this way: a column or measure can only be referenced once in an underlying query and as such cannot be mapped to the data view twice. You can't do much about it from withn the capabilities, as you want a user to be able to add a column in here; as such you will need to manage this internally when mapping your data from the data view into your viewmodel based on checking for conditions.
How you might approach this at a high-level is something like the following:
You may find a better way based on your implementation, but this might give you some ideas to try.
Good luck,
Daniel
Proud to be a Super User!
On how to ask a technical question, if you really want an answer (courtesy of SQLBI)
Hi @Anonymous,
It's great that you're thinking about this scenario from an end-user perspective and making sure that you have a path for it 🙂
From a data perspective, this is a limitation with Power BI that cannot be managed in this way: a column or measure can only be referenced once in an underlying query and as such cannot be mapped to the data view twice. You can't do much about it from withn the capabilities, as you want a user to be able to add a column in here; as such you will need to manage this internally when mapping your data from the data view into your viewmodel based on checking for conditions.
How you might approach this at a high-level is something like the following:
You may find a better way based on your implementation, but this might give you some ideas to try.
Good luck,
Daniel
Proud to be a Super User!
On how to ask a technical question, if you really want an answer (courtesy of SQLBI)
Hi Daniel,
Thank you very much for detailed explanation, it helped a lot :). At metadata I can see all the input datafields. I was able to grab and copy them into my data array.
br
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.
User | Count |
---|---|
8 | |
3 | |
3 | |
3 | |
3 |