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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
Anonymous
Not applicable

connecting multiple values with one value

Hi girls & guys,

 

once again I need your help.

I have following issue.

- two tables which are connected via the item#. N-->1

- table #1 has multiple shelflife values for some items, hence sometimes mutliple item#rows. (N)

- table #2 is a itemcharacteristic table, hence 1 row per item# (1)

- I build a max and min value DAX these shelflife values since i am only interested in the extemes.

- i want to create 2 colums in my characteristic table in order being able to filter by these shelflifedates on an item#level.

 

how can i extract those values and implment them. 

I need something Like: 

IF(itemID [table1] = itemID [table2]; shelflifedays(max); 0)

the idea is that if the item# match the value from table#1 is displayed in my new column in table2. 

 

Thanks in advance.

 

BR,

 

Paul

3 REPLIES 3
v-juanli-msft
Community Support
Community Support

Hi @Anonymous 

For example, data example as below:

Capture14.JPG

Create a measure

Measure = CALCULATE(MAX(Table2[shelflifedays]),FILTER(ALLSELECTED(Table2),Table2[item]=MAX(Table2[item])))

Capture15.JPG

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.

Anonymous
Not applicable

Hello Maggie,

 

your result is exactly what i was looking for but for a column. 

Unfortunately if i aplly this to a column i reveive only one value for each row. 

Is there a way to apply a this mechanism in order to get a colum with these values?

 

BR,

Paul

edhans
Community Champion
Community Champion

It would be helpful if you posted some data, and also clarify. You posted this in the Power Query forum, but you are using DAX language. I think Power Query is were this goes honestly, but without data to play with it is hard to fully undertand and impossible to show you a code example.

 

How to get good help fast. Help us help you.
How to Get Your Question Answered Quickly
How to provide sample data in the Power BI Forum



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.