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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Need help in creating an inflow/outflow chart using Power BI

Hi All,

I have been looking to create an inflow/outflow report with the below data where I am expecting a Bar Chart with Count of Numbers Opened Vs Count of Numbers Closed for each month and year.

 

Inflow.PNG

 

I could achieve Opened Count Separately and Closed Count Separately. Not able to include them both in a Column Chart for showcasing the inflow vs outflow.

 

Any idea of achieving the same?

 

Thanks in Advance!

Arun

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

@Anonymous ,

 

You may refer to the post below.

https://community.powerbi.com/t5/Desktop/Create-a-Clustered-Column-Chart-using-Two-Summarize-Measures/m-p/340433#M152410

Community Support Team _ Sam Zha
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

3 REPLIES 3
v-chuncz-msft
Community Support
Community Support

@Anonymous ,

 

You may refer to the post below.

https://community.powerbi.com/t5/Desktop/Create-a-Clustered-Column-Chart-using-Two-Summarize-Measures/m-p/340433#M152410

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Hi @v-chuncz-msft ,

 

I tried it but it is not giving me any result and I am getting an empty chart. I used the below formula for a Calendar table:

 

Date = ADDCOLUMNS
(CALENDAR(DATE(2000,1,1),DATE(2050,12,31)),
"Year", YEAR([Date]),
"Monthnumber", FORMAT ( [Date], "MM" ),
"YearMonthnumber", FORMAT ( [Date], "YYYY/MM" ),
"YearMonthShort", FORMAT ( [Date], "YYYY/mmm" ),
"MonthNameShort", FORMAT ( [Date], "mmm" ),
"MonthNameLong", FORMAT ( [Date], "mmmm" ),
"DayOfWeekNumber", WEEKDAY ( [Date] ),
"DayOfWeek", FORMAT ( [Date], "dddd" ),
"DayOfWeekShort", FORMAT ( [Date], "ddd" ),
"Quarter", "Q" & FORMAT ( [Date], "Q" ),
"YearQuarter", FORMAT ( [Date], "YYYY" ) & "/Q" & FORMAT ( [Date], "Q" )
)
 
And created inflow and outflow using the below measures:
 

Inflow =
VAR d =
MAX ( 'Calendar'[Date] )
RETURN
CALCULATE (
DISTINCTCOUNT ('Page 1 (2)'[Number]),
'Page 1 (2)'[Opened] = d
)


Outflow =
VAR d =
MAX('Date'[Date])
RETURN
CALCULATE(
DISTINCTCOUNT('Page 1 (2)'[Number]),
'Page 1 (2)'[Closed] = d
)

 

Am I missing something?

 

Thanks,

Arun

Anonymous
Not applicable

@v-chuncz-msft 

 

 

 

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.