Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. 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.
Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.
| User | Count |
|---|---|
| 48 | |
| 46 | |
| 41 | |
| 20 | |
| 17 |
| User | Count |
|---|---|
| 70 | |
| 67 | |
| 32 | |
| 27 | |
| 26 |