Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
I would like to create a button filter in power bi that would allow me to show the values that have been active for more than 6 months and those that have been active for less than 6 months, I will explain an example:
Then in Power Bi have a filter like this (This filter is not created, I have only posted an image of how I would like it to appear, but I don't know how to create it):
So when I click on "last 6 month" in the matrix will appear:
And if I click on "over 6 month" the matrix will change the data for:
Solved! Go to Solution.
Hi, @mariag13011995
You can try the following methods.
Column = IF(DATEDIFF([DATE],TODAY(),MONTH)<=6,"last 6 month","over 6 month")
Result:
Is this the result you expect?
DATEDIFF function (DAX) - DAX | Microsoft Learn
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @mariag13011995
You can try the following methods.
Column = IF(DATEDIFF([DATE],TODAY(),MONTH)<=6,"last 6 month","over 6 month")
Result:
Is this the result you expect?
DATEDIFF function (DAX) - DAX | Microsoft Learn
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
is period name a column?
No, I do not know how to create that filter, so is just an image that reflect how I would like this filter looks like
User | Count |
---|---|
97 | |
87 | |
77 | |
67 | |
63 |
User | Count |
---|---|
112 | |
96 | |
95 | |
67 | |
65 |