Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Solved! Go to Solution.
Hi @sonam7 ,
We can use the following measure to meet your requirement:
InprogressEnvironments = CALCULATE ( DISTINCTCOUNT ( 'vwEnvironments'[EnvironmentID] ), FILTER ( 'vwEnvironments', OR ( 'vwEnvironments'[Build] IN FILTERS ( Builds[Build] ), RELATED ( vwDynamic[TARGETBUILD] ) IN FILTERS ( Builds[Build] ) ) ), 'vwEnvironments'[State] = "In Progress" )
BTW, pbix as attached.
Best regards,
Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @sonam7 ,
We can use the following measure to meet your requirement:
InprogressEnvironments = CALCULATE ( DISTINCTCOUNT ( 'vwEnvironments'[EnvironmentID] ), FILTER ( 'vwEnvironments', OR ( 'vwEnvironments'[Build] IN FILTERS ( Builds[Build] ), RELATED ( vwDynamic[TARGETBUILD] ) IN FILTERS ( Builds[Build] ) ) ), 'vwEnvironments'[State] = "In Progress" )
BTW, pbix as attached.
Best regards,
Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @v-lid-msft ,
Thanks a lot for your help with the DAX Measure! However, when I run using this formula in my .pbix I get the following error:
The column 'vwDynamic[TARGETBUILD]' either doesn't exist or doesn't have a relationship to any table available in the current context.
Your .pbix is very similar to mine.
I can see that in my .pbix, tables are connected to each other using the below shown relationships.
Build ---> vwEnvironments (one to Many) ON (Builds.build = vwEnvironments.Build)
vwEnvironments <--> Dynamic (Many to One) ON (vwEnvironments.RunID = Dynamic.RunID)
Anyidea why am I getting this error and how can I fix this issue? Thanks!
Hi @sonam7 ,
I add the new column runid and create new relation, but it works fine on my side, maybe your targetbuild name is different from mine?
BTW, pbix as attached.
Best regards,
Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
65 | |
64 | |
56 | |
39 | |
27 |
User | Count |
---|---|
85 | |
59 | |
45 | |
43 | |
38 |