Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Hi all! I'm wondering if there is a smarter way of doing what I'm doing. Here is how I do it today.
I create the columns Is_Teen, Is_YoungAdult, etc... so that I can plot a column chart showing age spread. Is there a simpler way to do this without creating all those columns like Is_Teen, Is_YoungAdult, etc?
Thanks!
Solved! Go to Solution.
Thanks! I think I found the answer here: Power BI: Use DAX Switch Function to Make IF Functions Easier - YouTube
Hi,
You should not create multiple columns. Just create a single column and in that, via an IF() function, generate th results as Teen, Young adult etc.
Thanks! I think I found the answer here: Power BI: Use DAX Switch Function to Make IF Functions Easier - YouTube
User | Count |
---|---|
100 | |
87 | |
81 | |
76 | |
71 |
User | Count |
---|---|
112 | |
105 | |
96 | |
74 | |
66 |