Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
ofrede
New Member

Multiple Y-axis from Cube data

Hi,

 

I have a cube to which I connect. It has a rather simple fact with some meassures:

 

Prices:

Date

Value

 

The Index is then connected to my Commodities dimension:

Commodities:

Name

 

So imagine my Prices measures contains prices for different Commodities for certain dates and combined with the Commodities dimension, I can get the following information:

 

DateCommodityValue
2000-01-01Ship1000000
2000-01-01Car5000
2000-01-01Banana0.5

 

So now I have a fine index of different commodities.

But if I want to get this data into a graph, and I want to show Ships and Bananas on the same graph, my Bananas "disappears" (or rather: is very close to the 0-value on the Y-axis), compared to Ships.

 

What I would like to do is to put the Prices.Value where the commodity = Ship into the graphs "Values" field and Prices.Value where the commodity = Banana into the graphs "Secondary values" field.

 

As mentioned in the headline, I get my data from a cube, so (I guess) it is limited how many DAX-calculations I can make in PowerBI.

 

Is it possible to do something like the above? Or can it only be done by restructuring the cube?

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @ofrede ,

 

You may try to add a measure to "seperate" the smallest and the biggest value like this:

Secondary = 
var _sum=SUM('Table'[Value])
return IF(_sum<2,_sum,BLANK())

Eyelyn9_2-1635125975583.png

 

Or enable the Zoom slicer options:

zoom slicer.gif

 

Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @ofrede ,

 

You may try to add a measure to "seperate" the smallest and the biggest value like this:

Secondary = 
var _sum=SUM('Table'[Value])
return IF(_sum<2,_sum,BLANK())

Eyelyn9_2-1635125975583.png

 

Or enable the Zoom slicer options:

zoom slicer.gif

 

Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Solution accepted!

 

And it gave me the hint for an even better solution (in my case)!
I have my data in groups (Fruits, Small vehicles, Large vehicles) which I can then filter on instead of the value.

So based on my real-life example, I have created a few new measures like this one:

Fruit =CALCULATE(sum(Commodities[Value]),CommoditySpec[Group]="Fruit")

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors