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.
Hello - looking for suggestions on how to solve this. I have one table table1 which has column price, item, subitem and another table table 2 with item, subitem, start price, end price. I want to create a column in table2 which gives count of records with price in table 1 falling between the start price and end price values of table2 for a particular item, sub-item.
Solved! Go to Solution.
Hi,
Write this calculated column formula in Table2
Count = calculate(countrows(table1),filter(table1,table1[item]=earlier(table2[item])&&table1[subitem]=earlier(table2[subitem])&&table1[price]>=earlier(table2[startprice])&&table1[price]<=earlier(table2[endprice])))
Hope this helps.
You are welcome.
Hi,
Write this calculated column formula in Table2
Count = calculate(countrows(table1),filter(table1,table1[item]=earlier(table2[item])&&table1[subitem]=earlier(table2[subitem])&&table1[price]>=earlier(table2[startprice])&&table1[price]<=earlier(table2[endprice])))
Hope this helps.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
117 | |
104 | |
77 | |
73 | |
52 |
User | Count |
---|---|
145 | |
109 | |
109 | |
90 | |
64 |