Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Dear community,
I created several measures (called [0], ..., [20]) which calculates a y value for the x values 0, ..., 20.
Afterwards i visualised this with a bar chart. I put all measures in the y-Axis.
The problem is to make the bars wider. How I already read in other common topics is that I need a x-Axis to do so.
So what I tried is to make a new table which is not working, because it won't accept the measure as a cell value.
Solved! Go to Solution.
Hi Eason,
I could already solve it.
I used a Switch True Condition to connect x-Values and y-Value.
Switch(
TRUE(),
x-Value, CALCULATE(...),
x-Value, CALCULATE(...),
...
)
This worked. We can close this topic
Hi @Shifty1993 ,
Have you tried
measure2[0] = Calculate(measure[0],x=0)
measure2[1] = Calculate(measure[1],x=1)
measure2[2] = Calculate(measure[2],x=2)
.
.
.
and so on ...
And put the X values column in the X Axis.
It is not working. I cannot pull the measure to the X-Axis.
I created the following measure:
Hi, @Shifty1993
Can you share a sample file?
It's easier to take a look at the problem.
Best Regards,
Community Support Team _ Eason
Hi Eason,
I could already solve it.
I used a Switch True Condition to connect x-Values and y-Value.
Switch(
TRUE(),
x-Value, CALCULATE(...),
x-Value, CALCULATE(...),
...
)
This worked. We can close this topic
Additional information: the function in the measures have several variable x values. I just need the relationship between 0, ... , 20 and the result out of the measures.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
19 | |
14 | |
13 | |
11 | |
8 |