Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
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.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
72 | |
69 | |
57 | |
37 | |
36 |
User | Count |
---|---|
83 | |
67 | |
62 | |
46 | |
45 |