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.
Hi All,
I would need a help to know how i can make bins as per my choice in power bi.
So I have [Age] field, and it has values from diff age groups varies from 15 yrs to 70 yrs.
I want to see which age group is using my product more or have most no of footfall in my app.
this code is not working for me
Below is a demo of that...
Solved! Go to Solution.
Hi @Sushant_Uniphor ,
Are you trying to create a column to use on the X axis? based on the age in the Tableau_vw_TotalUsers table?
If so you can create a calc column like the following:
User Bin =
switch(true(),
'Tableau_vw_TotalUsers'[Age] <=10, "less than 10",
'Tableau_vw_TotalUsers'[Age] <=20, "between 10 and 20",
....,
"greater_than_n"
)
Hope that Helps
Proud to be a Super User!
You can achieve it by creating a conditional column for the ranges and then using that field on the chart.
Go to Power Query > Add Column > Conditional Column and type the following conditions:
I used a random sample from Excel. Find my work files on the following Drive folder.
Hi @Sushant_Uniphor,
Did these suggestions help with your scenario? if that is the case, you can consider Kudo or accept the helpful suggestions to help others who faced similar requirements to find it more quickly.
If these also not help, please share more detailed information to help us clarify your scenario to test.
How to Get Your Question Answered Quickly
Regards,
Xiaoxin Sheng
You can achieve it by creating a conditional column for the ranges and then using that field on the chart.
Go to Power Query > Add Column > Conditional Column and type the following conditions:
I used a random sample from Excel. Find my work files on the following Drive folder.
Hi @Sushant_Uniphor ,
Are you trying to create a column to use on the X axis? based on the age in the Tableau_vw_TotalUsers table?
If so you can create a calc column like the following:
User Bin =
switch(true(),
'Tableau_vw_TotalUsers'[Age] <=10, "less than 10",
'Tableau_vw_TotalUsers'[Age] <=20, "between 10 and 20",
....,
"greater_than_n"
)
Hope that Helps
Proud to be a Super User!
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 |
---|---|
111 | |
100 | |
80 | |
64 | |
58 |
User | Count |
---|---|
146 | |
110 | |
93 | |
84 | |
67 |