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!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
Hello,
I have in the moment a "blackout"!
I need help to following problem:
I have a table:
date | Capa | Closing 30 Day |
2021-12 | 123 | yes |
2021-11 | 124 | yes |
2021-11 | 532 | no |
2021-11 | 36 | yes |
2021-11 | 574 | yes |
2021-12 | 45875 | no |
2021-12 | 88 | yes |
2021-12 | 546 | yes |
2021-12 | 463 | yes |
2021-12 | 364 | no |
2021-12 | 4374 | yes |
2021-08 | 47 | yes |
2021-08 | 58 | yes |
2021-08 | 589 | yes |
2021-08 | 6964 | no |
2021-08 | 489 | yes |
2021-08 | 499 | yes |
I want to create the followingtable with a DAX function
date | Closing 30 Day yes | Closing 30 Day no |
2021-08 | 5 | 1 |
2021-11 | 3 | 1 |
2021-12 | 5 | 2 |
Thanks for help
Friedbert
Solved! Go to Solution.
Table5 =
SUMMARIZE(
Table4,
Table4[date],
"Closing 30 Day yes",CALCULATE(COUNTROWS(Table4),FILTER(Table4,Table4[Closing 30 Day]="yes")),
"Closing 30 Day no",CALCULATE(COUNTROWS(Table4),FILTER(Table4,Table4[Closing 30 Day]="no"))
)
Hi,
Please try the below.
It is for creating a new table.
New Table =
GENERATE (
VALUES ( Data[Date] ),
{
( CALCULATE (
COUNTROWS (
FILTER (
SELECTCOLUMNS ( Data, "@Closing30dayYes", Data[Closing 30 Day] ),
[@Closing30dayYes] = "Yes"
)
)
), CALCULATE (
COUNTROWS (
FILTER (
SELECTCOLUMNS ( Data, "@Closing30dayNo", Data[Closing 30 Day] ),
[@Closing30dayNo] = "No"
)
)
) )
}
)
Thank you very much, it woorks.
Table5 =
SUMMARIZE(
Table4,
Table4[date],
"Closing 30 Day yes",CALCULATE(COUNTROWS(Table4),FILTER(Table4,Table4[Closing 30 Day]="yes")),
"Closing 30 Day no",CALCULATE(COUNTROWS(Table4),FILTER(Table4,Table4[Closing 30 Day]="no"))
)
Thank you very much, it woorks.
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the September 2025 Power BI update to learn about new features.
User | Count |
---|---|
9 | |
8 | |
7 | |
4 | |
3 |
User | Count |
---|---|
14 | |
13 | |
11 | |
10 | |
10 |