Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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"
)
)
) )
}
)
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
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.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
47 | |
24 | |
20 | |
15 | |
13 |
User | Count |
---|---|
51 | |
42 | |
39 | |
19 | |
19 |