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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
olondo
Frequent Visitor

Using a measure to get the right values in the right column

Dear Community,

 

Recently I create a dimension Bucketgroups in the datawarehouse to create a view of the slow moving stock.

 

This dimension, I can use to move the Excess in the right column. The problem is that I need a relationship based on the result of a measure. Maybe there is something possible in PowerBI (because there is always something possible in PowerBI 😉 ), but I don't know what the solution is. Hopefully you can help me with this challenge.

 

The dimension bucketgroup shows the following table:

bucketgroup.jpg

 

And I have a measure named Excess created in PowerBI:

(Quantity item - Min. Stock) / SoldQuantitylastyear * 360.

 

For an example, I have an item with result 1097,14 (measure Excess). This value do I need to put the following measure in category 3-4 jaar.

excess.jpg

Measure = quantity item * soldquantitylastyear (formula is a quite harder, will spare you on that). --> result 50

 

Sow the result for this item needs to be:

tabel.png

 

So, the measure where the result is 50 needs to be in category 3/4 jaar. To calculate which category the measure needs to be is the result of the measure Excess.

 

Hopefully I have explained the hardness of this issue and there is something possible in DAX or PowerBI.

 

Kind regards, Tim

2 REPLIES 2
v-juanli-msft
Community Support
Community Support

Hi @olondo 

The measure Excess: (Quantity item - Min. Stock) / SoldQuantitylastyear * 360,

Is any part of the measure a column or a measure?

Can i create a caluclated column in stead of a measure?

Do you have any slicer to change the measures?

 

Any way, There are some useful references below:

https://www.daxpatterns.com/dynamic-segmentation/

https://docs.microsoft.com/en-us/power-bi/desktop-grouping-and-binning

http://sqljason.com/2017/03/dynamic-grouping-in-power-bi-using-dax.html

 

Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Dear @v-juanli-msft 

To answer your questions:

Is any part of the measure a column or a measure?

it is all based on measures

Can i create a caluclated column in stead of a measure?

I have tried to created a calculated measure but there isn't enough memory to complete the column unfortunately

Do you have any slicer to change the measures?

No, in this report we don't use any slicers. It is a report focused on all inventorytransactions based on all years. 

 

Hopefully I have helped you and other colleagues on this community to help me further.

 

Wil look and investigate your links next weekend.

 

Thanks in advantage, Tim

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.