Forum Discussion
Create Slicer for Measure ,
Hi ,
good day.
I have built a report which to track how many Outlets are Active or InActive , All are Tracking based on duration of 3 , 6 & 12 Months.
I have created the formula for 3 months , 6 months and 12 months with this Measure :
Actually i have a slicer of 3 months , 6 months , 12 months duration alr , but i am stuck over the Slicer of Active or In- Active .
Because mypurpose to Click on the duration and click on Active or In-Active.
11 Replies
- JQuonHelper I
Would you benefit using a calculated column instead of a measure and using that data field as the slicer?
- Chanleakna123Post ProdigyHi , can u show me how ? I have used calculated column , but it turns not eights , since all the data of 3 months , 6 & 12 months are already combined with measure.
- JQuonHelper I
Actually, after reviewing your question and the design behind the logic, I understand where the complication is. Let me digest this a little more and see if I can come up with a solution.
- v-xicaiCommunity Support
Hi Chanleakna123 ,
The slicer supports calculated column instead of measure, so you might create [Active or In-Active] using column, while you may need to click refresh button once the data changed.
There is another solution to filter Active or Inactive, you can create measure Filter1 like DAX below first of all, then put the Filter1 in the Visual Level Filter of Matrix visual which displays [Customer Name] and other fields, setting Filter1 as "is not blank".
Filter1=IF ([Active or In-Active]="Active", 1, BLANK())
Best Regards,
Amy
Community Support Team _ Amy
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- PaulDBrownCommunity Champion
Apologies upfront since I’m typing this from a tablet (so no PBI Desktop to test measures etc...).
To be able to see either Active Or Inactive outlets, you can create a new table using the “Enter data” (to generate a table) with the values Active and Inactive in two rows of the table. Let’s call this table Activity Status.
make sure the table has no relationships with other tables in your model.
then create a measure which goes along the lines of:
Activity Status = IF(SELECTEDVALUE(Status Activity[column]) = “Active”, [your active measure], [your inactive measure])
Use this measure in you visual (table or whatever), and create a new slicer with the column from Activity Status table.