Forum Discussion
Calculate repeat values from within user defined periods
- 8 years ago
Hi bathnesresearch,
"in essence, create a dynamic axis a using the measure filtered by the slicer."
<--- So your requirement is to create a dynamic calculate column based on which is your slicer, right? I'm afraid you can't achieve this because power bi doesn't support dynamic calculate column.
Regards,
Jimmy Tao
Hi jonpoole,
You can create a measure using DAX as below:
RepeatCount =
CALCULATE (
COUNTROWS ( Table1 ),
ALLEXCEPT ( Table1, Table1[ClientID] ),
ALLSELECTED ( Table1[Date] )
)
In addtion, based on my test, I'm afraid the priority of a slicer is very low so that we can't filter context based on a slicer but only use a slicer to filter other row context.
Regards,
Jimmy Tao
Thanks Jimmy, we got a very similar output, that's helpful.
The other requirement (neglected this in my OP) is for a summary graph of the instances (a count of duplicate counts) which is dynamic relative to the aforementioned date range (in essence, create a dynamic axis a using the measure filtered by the slicer).
My understanding from your post and some further search is that the slicer priority wouldn't allow this to happen, but I thought I'd double check.
thanks again!
- v-yuta-msft8 years agoCommunity Support
Hi bathnesresearch,
"in essence, create a dynamic axis a using the measure filtered by the slicer."
<--- So your requirement is to create a dynamic calculate column based on which is your slicer, right? I'm afraid you can't achieve this because power bi doesn't support dynamic calculate column.
Regards,
Jimmy Tao