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!
I have about 100 customers in my table from whcich i need to create a measure to select sepcific two customers rest of the customers grouped uder "all others". Example: Customer A and Customer B and All others. Is there any way to solve this requeirement?
Prabhu
Solved! Go to Solution.
hi, @prabhuk
It’s my pleasure to answer for you.
According to your description,If the original ‘customer’ column doesn't appear in your table, It's recommended to use a calculated column to display.
Like this:
Column = SWITCH (
TRUE(),
'Table'[Customer]="AA","A",
'Table'[Customer]="BB","B",
"All Others"
)
If it doesn’t solve your problem, please feel free to ask me.
Best Regards
Janey Guo
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @prabhuk
If you can supply your actual data it makes things easier, but I've ceated some dummy data you can download in this PBIX file.
With a table like this
You can create this measure
Measure = SWITCH (
TRUE(),
CONTAINSSTRING(MIN('Table'[Customer]) , "AA"), "Customer",
CONTAINSSTRING(MIN('Table'[Customer]) , "BB"), "Customer",
"All Others"
)
Which gives you this
Regards
Phil
If I answered your question please mark my post as the solution.
If my answer helped solve your problem, give it a kudos by clicking on the Thumbs Up.
Proud to be a Super User!
Thanks,
When i select measure along with sale value ,it is relfecting as customerA not as Customer A and Customer B and all others . I have attached the File for your reference. Kindly help to have measure in row as Customer A, Custome B and All others and Sales in Value column.
hi, @prabhuk
It’s my pleasure to answer for you.
According to your description,If the original ‘customer’ column doesn't appear in your table, It's recommended to use a calculated column to display.
Like this:
Column = SWITCH (
TRUE(),
'Table'[Customer]="AA","A",
'Table'[Customer]="BB","B",
"All Others"
)
If it doesn’t solve your problem, please feel free to ask me.
Best Regards
Janey Guo
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Create a calculated column in your table for instance CustomerGroup with the logic
IF Customer = "customer a" or Customer = "customer b" THEN customer ELSE "Other"
Create a slicer on the new column
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 |
---|---|
106 | |
94 | |
77 | |
65 | |
53 |
User | Count |
---|---|
145 | |
105 | |
104 | |
90 | |
63 |