March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hello,
I'm studying a tutorial which displays a graph where all the stores with the Status = Off are grouped together.
How can I do that?
Thanks for your help
Solved! Go to Solution.
@GD61 the "grouping" is accomplished in the measure that you create.
They drop "Active StoreName" into the visual and the above code basically says the following:
If the status has a value of "On" than return the StoreName
If the status value does not equal "On" than return the string value of "Inactive"
So if there are 10 stores, and 4 have a status of "On" then each of the 4 stores will show seperately. The other 6 stores are essentially renamed/grouped to "Inactive" - which is how the tutorial "Grouped" the stores.
@GD61 First, can you post the link of the tutorial, and what part are you struggling with?
By default, if you have the dataset loaded into the Desktop, then you should just be able to drop the stores on the work space and then drag the Status field into the same visual, or a seperate visual and make it a slicer, or put it in a filter.
Thanks,
The URL of tutorial is:
The graph which groups the "inactive" stores is at the very bottom.
It is not explained how they made this grouping
Thanks again
@GD61 the "grouping" is accomplished in the measure that you create.
They drop "Active StoreName" into the visual and the above code basically says the following:
If the status has a value of "On" than return the StoreName
If the status value does not equal "On" than return the string value of "Inactive"
So if there are 10 stores, and 4 have a status of "On" then each of the 4 stores will show seperately. The other 6 stores are essentially renamed/grouped to "Inactive" - which is how the tutorial "Grouped" the stores.
Great! That works!
Thanks a lot
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
123 | |
86 | |
73 | |
57 | |
52 |
User | Count |
---|---|
197 | |
133 | |
107 | |
69 | |
65 |