This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowA new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.
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
Check out the May 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |