Forum Discussion
Ratax
7 years agoHelper I
Create a new column with filtered data from another table
Hello All I want to transfer data from one table to another, and filter some of the data. i have 2 tables "Sticks" and "Statistics". I wanna create a new column in the table Statistics. I wa...
- 7 years ago
Hi Ratax,
It's much easier now. Please try the formula below in a calculated table.
Table = SUMMARIZE ( 'Table1', 'Table1'[StickiD], "Ratio(CowNo 8001-8999)", CALCULATE ( MIN ( Table1[CRatio] ), FILTER ( 'Table1', Table1[BCowNo] > 8000 && Table1[BCowNo] < 9000 ) ), "Ratio(CowNo 9001-9999)", CALCULATE ( MIN ( Table1[CRatio] ), FILTER ( 'Table1', Table1[BCowNo] > 9000 && Table1[BCowNo] < 10000 ) ) )Best Regards,
Dale - 7 years ago
Hi Ratax,
Try this formula, please.
Table = FILTER ( SUMMARIZE ( 'Table1', 'Table1'[StickiD], "Ratio(CowNo 8001-8999)", CALCULATE ( MIN ( Table1[CRatio] ), FILTER ( 'Table1', Table1[BCowNo] > 8000 && Table1[BCowNo] < 9000 ) ), "Ratio(CowNo 9001-9999)", CALCULATE ( MIN ( Table1[CRatio] ), FILTER ( 'Table1', Table1[BCowNo] > 9000 && Table1[BCowNo] < 10000 ) ) ), NOT ( ISBLANK ( [Ratio(CowNo 8001-8999)] ) && ISBLANK ( [Ratio(CowNo 9001-9999)] ) ) )Best Regards,
Dale
Greg_Deckler
7 years agoCommunity Champion
So, the image you posted, is that the Sticks table? What is the relationship between the two tables? Is the relationship one-to-many or one-to-one? Which way does it filter?
Please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490
