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 there,
I have a measure that calculates the no of events. I have applied some inclusion rules at the page level. For example, only consider those rows where the column named 'NumberofCustomer' has a value greater than 0. Similarly, consider only rows where a column named 'Duration' has a value greater than 0. The filter at the page level is shown in the figure:
I converted these inclusion rules into measures as shown below:
Solved! Go to Solution.
Hi @Dunner2020 ,
I guess you want to use the slicer visual to achieve the functions you want, right? Sorry for that measure cannot be used in the slicer.
I try to solve this problem in my way, is this the result you want?
1. Create two columns to mark.
Duration_flag = IF('Sheet1'[Duration] >= 1,1,0)
Zero Customer_flag = IF('Sheet1'[NumberOfConsumers] > 0,1,0)
Hope that's what you were looking for.
Best Regards,
Yuna
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Dunner2020 ,
I guess you want to use the slicer visual to achieve the functions you want, right? Sorry for that measure cannot be used in the slicer.
I try to solve this problem in my way, is this the result you want?
1. Create two columns to mark.
Duration_flag = IF('Sheet1'[Duration] >= 1,1,0)
Zero Customer_flag = IF('Sheet1'[NumberOfConsumers] > 0,1,0)
Hope that's what you were looking for.
Best Regards,
Yuna
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Very helpful. Thx for taking the time.
One addition which might help:
If you are using a table and not a spread sheet, you might write your measure like this:
"
"
@v-yuaj-msft , sorry for the confusion. I want to show those two filter as a checkbox on the page as shown below in the picture:
So that when we click on either or both checkboxes it filters the data.
Hi @Dunner2020 ,
Sorry for that I'm still confused about what result you want to get, please provide me with more details about your problem and your desire result. From where I stand, the button does not seem to have such a function.
Is the following result you want?
Based on your description, you can do some steps as follows.
Table = SUMMARIZE(FILTER('Sheet1','Sheet1'[Duration]<>0),[Duration])
Table 2 = SUMMARIZE(FILTER('Sheet1','Sheet1'[NumberOfConsumers]<>0),[NumberOfConsumers])
Result:
Hope that's what you were looking for.
Best Regards,
Yuna
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@Dunner2020 , Do this you have to do measure to dimension conversion using an independent table and bucketing. This also means you have to rebuild all the measures that will follow these buckets.
refer : https://www.youtube.com/watch?v=CuczXPj0N-k
or
https://www.daxpatterns.com/dynamic-segmentation/
https://radacad.com/grouping-and-binning-step-towards-better-data-visualization
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 |
---|---|
110 | |
94 | |
82 | |
66 | |
58 |
User | Count |
---|---|
151 | |
121 | |
104 | |
87 | |
67 |