The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi @Anonymous
Hope attached file satisfies your requirement
Insurance =
SUMX (
FILTER (
'Table',
'Table'[Nationality ] = "Non-Italy"
),
IF (
'Table'[Years] < 3,
'Table'[Salary] / 24,
'Table'[Salary] / 12
)
)
hello @Anonymous ,
please try:
Measure =
VAR selected = SELECTEDVALUE(Table1[Nationality ])
return
IF( selected <> "Italy" && MAX(Table1[Years]) < 3,SUM(Table1[Salary])/24,IF(selected <> "Italy",SUM(Table1[Salary])/12,0))
User | Count |
---|---|
11 | |
8 | |
6 | |
6 | |
6 |
User | Count |
---|---|
24 | |
14 | |
13 | |
10 | |
7 |