Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hello All,
STORE | ITEMS SOLD |
A | Electronics, Sporting Goods |
B | Sporting Goods |
C | Electronics, Sporting Goods, Apparel |
Would like to create a new measure for the unique items:
Category |
Apparel |
Electronics |
Sporting Goods |
Where selecting the Category value will return the Store(s) that sell the item(s).
For example ---
Selecting Apparel returns Store C
Selecting Electronics returns Store A and Store C
Selecting Sporting Goods returns Store A, Store B, and Store C
I'm new to creating DAX measures. Any help will be greatly appreciated.
Have a great day and weekend.
Solved! Go to Solution.
Expertise = List.Accumulate( {Days as from Today}, {Skills and Knowledge}, (Current, Everyday) => Current & Day.LearnAndPractise(Everyday) ) |
Expertise = List.Accumulate( {Days as from Today}, {Skills and Knowledge}, (Current, Everyday) => Current & Day.LearnAndPractise(Everyday) ) |
Hi, @TryingToLearn
use selected value, and concatenex
Store By Category =
VAR SelectedCategory = SELECTEDVALUE('Category'[Category])
RETURN
CONCATENATEX(
FILTER('StoreItems', CONTAINSSTRING([Items Sold], SelectedCategory)),
[Store],
", "
)
Proud to be a Super User!
Hi @rubayatyasmin,
Thank you for replying to my post. Unfortunately this part is causing issues:
FILTER('StoreItems',
I changed it to 'Store' which is the field name, but the measure is showing a "cannot find the table 'Store'" error.
'Store' and 'Items Sold' fields are on the same table (Store_Table).
Thanks again.
User | Count |
---|---|
25 | |
12 | |
8 | |
7 | |
7 |
User | Count |
---|---|
25 | |
12 | |
11 | |
10 | |
6 |