Forum Discussion
First & Second Instances has to be counted based on multiple conditions
Hi, Anonymous
I am not sure if I understood your question correctly, but please check the below picture and the sample pbix file's link down below for creating measures.
Instance Rank Measure =
RANKX (
ALLEXCEPT ( 'Table', 'Table'[IPAM_Code] ),
CALCULATE ( MAX ( 'Table'[Start of Support] ) ),
,
DESC
)
Hi, My name is Jihwan Kim.
If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.
Linkedin: linkedin.com/in/jihwankim1975/
Twitter: twitter.com/Jihwan_JHKIM
- Anonymous5 years agoNot applicable
Hello Jihwan_Kim,
Thanks a lot for the reply.
Yes you got it correct and it is giving the required results also.
There is one query that may I get first & second instances for any specific "Network Funtion" like, Access Switch"
As right now with these measures, when I filter a specific Network Function, sometimes 1st instance visible, not 2nd because that is related to another Network Function.
Kindly guide here, if I can give the condition in the DAX to calcualte the 1st & 2nd instance for any specific Network Function value.
Best Regards,
Brajpal Shishodia- Jihwan_Kim5 years ago
Super User
Hi, Anonymous
Please check the link down below.
I modified measures to react to the slicer if there is.
https://www.dropbox.com/s/rnt773lt1vslzch/b4pbi.pbix?dl=0
Hi, My name is Jihwan Kim.
If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.
Linkedin: linkedin.com/in/jihwankim1975/
Twitter: twitter.com/Jihwan_JHKIM