Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

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.

Reply
sglendenning
Helper I
Helper I

Organizing Data for Waterfall or Funnel

I have data organized as below and would like to create a waterfall or funnel that goes thru each record color from left to right and counts the number that drop at each color and excludes if the colors before were dropped.  For instace; record 2172 didn't make it past red so gets dropped for all other consideration.

 

Ultimately giving me data that shows;

9 records in total

8 red

4 green

2 yellow

1 blue

 

RecordRedGreenYellowBlue
60261000
72061101
21720110
47521110
99601101
84851011
35151010
39021010
30941111

 

Thank you.

 

 

1 ACCEPTED SOLUTION
v-eqin-msft
Community Support
Community Support

Hi @sglendenning ,

 

Please firstly create measures to get the numbers of each color column:

Red Count = CALCULATE(COUNTROWS('Table'),FILTER('Table',[Red]=1))

Green Count = SUMX(FILTER('Table',[Red]=1) ,[Green])

Yellow Count = SUMX( FILTER('Table',[Red]=1 && [Green]=1) ,[Yellow])

Blue Count = SUMX( FILTER('Table',[Red]=1 && [Green]=1 &&[Yellow]=1) ,[Blue])

Then add a new table with all colors:

Table 2 = {"Red","Green","Yellow","Blue"}

Use SWITCH() to match the measures created before:

Measure = SWITCH(MAX('Table 2'[Value]),"Red",[Red Count],"Green",[Green Count],"Yellow",[Yellow Count],"Blue",[Blue Count])

Output:

Eyelyn9_0-1653361560987.png

 

Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-eqin-msft
Community Support
Community Support

Hi @sglendenning ,

 

Please firstly create measures to get the numbers of each color column:

Red Count = CALCULATE(COUNTROWS('Table'),FILTER('Table',[Red]=1))

Green Count = SUMX(FILTER('Table',[Red]=1) ,[Green])

Yellow Count = SUMX( FILTER('Table',[Red]=1 && [Green]=1) ,[Yellow])

Blue Count = SUMX( FILTER('Table',[Red]=1 && [Green]=1 &&[Yellow]=1) ,[Blue])

Then add a new table with all colors:

Table 2 = {"Red","Green","Yellow","Blue"}

Use SWITCH() to match the measures created before:

Measure = SWITCH(MAX('Table 2'[Value]),"Red",[Red Count],"Green",[Green Count],"Yellow",[Yellow Count],"Blue",[Blue Count])

Output:

Eyelyn9_0-1653361560987.png

 

Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.