Forum Discussion
create slice
- 6 years ago
Hi gio1082 ,
Based on your desricption, I have defined the [Average of LAR] as a measure in my sample file like this:
Average = AVERAGE('Table'[Average of LAR])Modified the previous measure:
Measure = IF ( NOT ( ISFILTERED ( 'Slicer table'[LAR slicer] ) ), 1, IF ( SELECTEDVALUE ( 'Slicer table'[LAR slicer] ) = "greater than 96%", IF ( [Average] > 0.96, 1 ), IF ( SELECTEDVALUE ( 'Slicer table'[LAR slicer] ) = "less than 96%", IF ( [Average] < 0.96, 1 ) ) ) )Refer the sample file: Create a slicer.pbix
Best Regards,
Yingjie LiIf this post helps then please consider Accept it as the solution to help the other members find it more quickly.
Hi,
Sorry, for late response, this definitely what want but it not working for me. I think is because the average of LAR is metric.
So I have some products and a supplier who is responsible for that product. So Average LAR is a metric of the LAR to get the average for the supplier base on the products
thanks
Hi gio1082 ,
Based on your desricption, I have defined the [Average of LAR] as a measure in my sample file like this:
Average = AVERAGE('Table'[Average of LAR])Modified the previous measure:
Measure =
IF (
NOT ( ISFILTERED ( 'Slicer table'[LAR slicer] ) ),
1,
IF (
SELECTEDVALUE ( 'Slicer table'[LAR slicer] ) = "greater than 96%",
IF ( [Average] > 0.96, 1 ),
IF (
SELECTEDVALUE ( 'Slicer table'[LAR slicer] ) = "less than 96%",
IF ( [Average] < 0.96, 1 )
)
)
)Refer the sample file: Create a slicer.pbix
Best Regards,
Yingjie Li
If this post helps then please consider Accept it as the solution to help the other members find it more quickly.