Join 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!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi everyone!
I need to add one option in IF constraction...
switch off name if name in a period - data for this is in another table with colomns (Name, Start_period, End_Period)
working constration:
Count of -ve =
Count of -ve =
Solved! Go to Solution.
@Nick_2510
Please try
Count of -ve =
SUMX (
CROSSJOIN ( VALUES ( 'Календарь'[Date] ), VALUES ( Data[Name] ) ),
CALCULATE (
IF (
[diff_AvSal_bal] > 0
|| 'Календарь'[Date]
IN CALENDAR (
CALCULATE ( MAX ( 'Sheet1'[Start_per] ) ),
CALCULATE ( MAX ( 'Sheet1'[End_per] ) )
),
0,
1
)
)
)
@Nick_2510
Here you go https://we.tl/t-j2udW5gRf0
OOS =
SUMX (
CROSSJOIN ( VALUES ('Календарь'[Date]), VALUES ( Glossary[Name] ) ),
IF ( [diff_AvSal_bal] < -1
|| 'Календарь'[Date] IN
CALENDAR (
CALCULATE ( SELECTEDVALUE ( delist[Start_per] ) ),
CALCULATE ( SELECTEDVALUE ( delist[End_per] ) )
),
1, 0 )
)
@Nick_2510
This one is the latest solution I shared. Please download the file and check
Hi @Nick_2510
Please try
Count of -ve =
SUMX (
CROSSJOIN ( VALUES ( 'Календарь'[Date] ), VALUES ( Data[Name] ) ),
CALCULATE (
IF (
[diff_AvSal_bal] > 0
|| 'Календарь'[Date]
IN CALENDAR ( MAX ( 'Sheet1'[Start_per] ), MAX ( 'Sheet1'[End_per] ) ),
0,
1
)
)
)
It almost works, but the last month (Apr 2022) doesnt calculate...in total(....it is really strange...because with other months everything is OK
@Nick_2510
Please try
Count of -ve =
SUMX (
CROSSJOIN ( VALUES ( 'Календарь'[Date] ), VALUES ( Data[Name] ) ),
CALCULATE (
IF (
[diff_AvSal_bal] > 0
|| 'Календарь'[Date]
IN CALENDAR (
CALCULATE ( MAX ( 'Sheet1'[Start_per] ) ),
CALCULATE ( MAX ( 'Sheet1'[End_per] ) )
),
0,
1
)
)
)
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 9 | |
| 7 | |
| 6 | |
| 6 | |
| 5 |
| User | Count |
|---|---|
| 24 | |
| 21 | |
| 18 | |
| 14 | |
| 14 |