Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
71 | |
70 | |
43 | |
31 | |
26 |
User | Count |
---|---|
89 | |
49 | |
44 | |
38 | |
37 |