The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
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 |
---|---|
17 | |
8 | |
7 | |
6 | |
6 |
User | Count |
---|---|
26 | |
13 | |
12 | |
9 | |
8 |