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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
dhawk
New Member

Grouping Data in PowerBI Matrix based on a Month Bin Count

I am attempting to recreate this table in PowerBI and cannot get the table to calculate data based on the bin grouping of a month.

dhawk_2-1661728318898.png

 

I have the following constructed:

 

dhawk_3-1661728332988.png

 

 

Row = Created On (where the error occurs) attempted to be New Group > Bin Size = 1 month
Columns = Source History (Chocolate, Vanilla, Swirl)
Value = Count of source history

 

It will tell me that date is not allowed as part of calculated column DAX expressions on DirectQuery models. I need to keep this data as a DirectQuery and cannot use the import option. I am curious if anyone has any recommendations on how to recreate this excel table inside of PowerBI. Followed along several different help articles but no luck. Thank you in advance to anyone who is able to make some recommendations.

2 REPLIES 2
Chew_WenJie
Resolver II
Resolver II

Hi, i think you can put two column (year & month) at Rows in matrix table, which it show every year and month.
Below image is the sample.

Chew_WenJie_0-1661734212873.png

Matrix table: 

Chew_WenJie_1-1661734244232.png

 

Hope this can help you.

 

 

Thanks for your suggestion, this unfortunately didn't solve the issue.

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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

Top Solution Authors