Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
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
The sample data below is kind of a representation of my data in it's simplest form.
| Org | Amount | Amount Type | ShadowOrg |
| A | 10 | Revenue | X |
| A | 5 | Cost | X |
| B | 20 | Revenue | Y |
| B | 10 | Cost | Y |
| C | 30 | Revenue | Z |
| C | 15 | Cost | Z |
| X | 2 | Cost | |
| Y | 3 | Cost | |
| Z | 4 | Cost |
I mainly have 3 metrics I'm trying to get from it. The first 2, Revenue and Cost are straightfoward.
Hi @vickyd
try a measure
Shadow Revenue = CALCULATE([Revenue],
FILTER(ALL(Financials),Financials[ShadowOrg]=SELECTEDVALUE(Financials[Org]))
)do not hesitate to give a kudo to useful posts and mark solutions as solution
Thanks @az38 for the quick response.
Although your solution worked, I think I over-simplified my sample data. In reality, Financials is my fact table and I have several dimension tables associated to it in a star schema structure. In my sample, imagine a OrgMaster and ShadowOrgMaster table exists along with maybe few other dimension tables.
I do not want to remove all the filters from the Financial FACT table, only want to remove any filters from the OrgMaster table when calculating the Shadow Revenue.
So something like this wouldn't work giving a syntax error.
if you are trying to add a measure into ShadowOrgMaster it should look like
Shadow Revenue = CALCULATE([Revenue],
FILTER(ALL(OrgMaster),OrgMaster[ShadowOrg]=SELECTEDVALUE(ShadowOrgMaster[Org]))
)do not hesitate to give a kudo to useful posts and mark solutions as solution
@az38 wrote:if you are trying to add a measure into ShadowOrgMaster it should look like
Shadow Revenue = CALCULATE([Revenue],
FILTER(ALL(OrgMaster),OrgMaster[ShadowOrg]=SELECTEDVALUE(ShadowOrgMaster[Org]))
)
do not hesitate to give a kudo to useful posts and mark solutions as solution
OrgMaster will not have ShadowOrg column and ShadowOrgMaster will not have the Org column.
OrgMaster will have Org and say OrgName and ShadowOrgMaster will have ShadowOrg and ShadowOrgName.
Not seeing an attach file option here and have restrictions for file sharing at work else would have shared the PBIX file. Will try to share once I'm home.
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 |
|---|---|
| 9 | |
| 6 | |
| 3 | |
| 2 | |
| 1 |
| User | Count |
|---|---|
| 21 | |
| 14 | |
| 9 | |
| 5 | |
| 5 |