Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.
I have 3 tabels.
Table 1 contains a series of Policy numers
Table 2 Each Policy has 1 or more line items, which represent a coverage. They are represented by a TypeNr
Table 3. Each coverage (TypeNr) is either a saving of risc.
What I need, is a column is table 1, which shows if the policy only have items of the type Saving, Risc og Both. Any help will be greatly appreciated
Solved! Go to Solution.
Hi,
I am not sure how your datamodel looks like, but please check the below picture and the attached pbix file.
It is for creating a new table.
Expected result new table =
VAR _t =
SUMMARIZE ( Policy_Type, Policy[Policy], 'Type'[Type] )
VAR _condition =
ADDCOLUMNS (
_t,
"@Coverage",
IF (
COUNTROWS ( FILTER ( _t, Policy[Policy] = EARLIER ( Policy[Policy] ) ) ) > 1,
"Both",
'Type'[Type]
)
)
RETURN
SUMMARIZE ( _condition, Policy[Policy], [@Coverage] )
Hi,
I am not sure how your datamodel looks like, but please check the below picture and the attached pbix file.
It is for creating a new table.
Expected result new table =
VAR _t =
SUMMARIZE ( Policy_Type, Policy[Policy], 'Type'[Type] )
VAR _condition =
ADDCOLUMNS (
_t,
"@Coverage",
IF (
COUNTROWS ( FILTER ( _t, Policy[Policy] = EARLIER ( Policy[Policy] ) ) ) > 1,
"Both",
'Type'[Type]
)
)
RETURN
SUMMARIZE ( _condition, Policy[Policy], [@Coverage] )
Thank you - that was exactly what I needed
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.
User | Count |
---|---|
81 | |
42 | |
30 | |
27 | |
27 |