Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
I’m new to Power BI and blocked by a seemingly simple problem. I’m creating a Power BI report that uses two tables: “fact_claims transactions” for claims transactions, and “dim_procedure” for procedure dimension.
“fact_claims_transaction” table contains following columns:
“dim_procedure” table contains following columns:
One-to-many relationship exists from “dim_procedure” table (column ProcedureSK) to “fact_claims_transactions” table (column ProcedureFK).
The Power BI report being created requires a “Table” visualization consisting of the following columns:
First five columns are being captured directly from the two tables. And for the sixth column, I've defined a Measure on “fact_claims_transactions” table, but it doesn’t seem to work.
The measure I’ve defined is:
Average Billed Amount by Procedure = CALCULATE(AVERAGE(fact_claim_transactions[Billed Amount]), ALLEXCEPT(dim_procedure, dim_procedure[Procedure Code]))
Instead of giving Average Billed Amount value by Procedure Code, it is giving the Billed Amount value for the line, as shown below:
Could someone help me understand what's the issue here, and how to fix it?
Thanks for your help!
Solved! Go to Solution.
Hi @puneetn,
Try this formula below which works for me. Please refer:
Measure =
CALCULATE (
AVERAGE ( 'fact_claims_transaction'[Billed Amount] ),
FILTER (
ALLSELECTED ( dim_procedureProcedureSK ),
'dim_procedureProcedureSK'[Procedure Code]
= MAX ( 'dim_procedureProcedureSK'[Procedure Code] )
)
)
Here is the output.
If you still need help, please share your data sample and your expected output.
Best Regards,
Cherry
Hi @puneetn,
Try this formula below which works for me. Please refer:
Measure =
CALCULATE (
AVERAGE ( 'fact_claims_transaction'[Billed Amount] ),
FILTER (
ALLSELECTED ( dim_procedureProcedureSK ),
'dim_procedureProcedureSK'[Procedure Code]
= MAX ( 'dim_procedureProcedureSK'[Procedure Code] )
)
)
Here is the output.
If you still need help, please share your data sample and your expected output.
Best Regards,
Cherry
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.