Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreThe FabCon + SQLCon recap series starts April 14th at 8am Pacific. If you’re tracking where AI is going inside Fabric, this first session is a can't miss. Register now
Hi, I have a table that looks like the below and I am connecting via SSAS tabular..
I have a measure that gets me the distinctcount of the contractID... however I somehow need to be able to filter this to only give me contracts that relate to a CompanyID that has a combined contractvalue of > 1000
So based o the above example, we know that CompanyID 1102 has a combined ContractValue of 1120.. so I somehow want to filter the below measure to only calculate where this clause is met.
Total Contracts : = count(ContractID)
I have tried the below with no luck - any ideas?
Then I have tried
Solved! Go to Solution.
Hi @jd8766
You can try this, create the measures below
SumPerCompanyID = SUMX(FILTER(ALL(Sales),Sales[CompanyID]=MIN(Sales[CompanyID])),Sales[ContractValue])distinctCount = CALCULATE(DISTINCTCOUNT(Sales[ContractID]),FILTER(ALL(Sales),[SumPerCompanyID]>1000))
result
Best Regards,
Community Support Team _Tang
If this post helps, please consider Accept it as the solution to help the other members find it more quickly.
Hi @jd8766
You can try this, create the measures below
SumPerCompanyID = SUMX(FILTER(ALL(Sales),Sales[CompanyID]=MIN(Sales[CompanyID])),Sales[ContractValue])distinctCount = CALCULATE(DISTINCTCOUNT(Sales[ContractID]),FILTER(ALL(Sales),[SumPerCompanyID]>1000))
result
Best Regards,
Community Support Team _Tang
If this post helps, please consider Accept it as the solution to help the other members find it more quickly.
Is it as simple as just putting a filter on the visual using the filter pane?
No because it will be in a visual that will show other fields that shouldn't be filtered by this threshhold
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 53 | |
| 40 | |
| 37 | |
| 19 | |
| 18 |
| User | Count |
|---|---|
| 69 | |
| 67 | |
| 34 | |
| 33 | |
| 30 |