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

Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now

Reply
Vadim_Drevin
Frequent Visitor

Two dates on X-axis based on 2 dimensions AND one measure on Y-axis

Hello Community!

I have a simple case but can't solve it with PowerBI, so I need an advice.

 

I have MS OLAP Cube and I connected to it using Power BI.

I have fact table "FACT" with a lot of columns including 2 ones: "Open Time" and "Close Time".

I have 2 dimensions "Dim_Open_Date" and "Dim_Close_Date". Both dimensions with hierarchy like Year-Quarter-Month-Day.

I have a simple measure called "Entites Count" - just a count of rows.

I want to create a visual like "Clustered column chart" where on X-axis I will have date hierarchy (Y-Q-M-D) and on Y-axis I will have my measure "Entites Count" - left bar biuld on "Dim_Open_Date" and right bar build on "Dim_Close_Date".

That's it. Will be appreciate any piece of advice. Thank you!

 

1 REPLY 1
v-caliao-msft
Microsoft Employee
Microsoft Employee

Hi @Vadim_Drevin,

 

This issue is more related to MDX query, if you can get "Open date Entites Count" and "Close date Entites Count" in your MDX, then you can create this bar chart easily. So you need to create those two measure in your cube. Here is the sample query for you reference.

Capture.PNG

 

 

Regards,

Charlie Liao

Helpful resources

Announcements
OCT PBI Update Carousel

Power BI Monthly Update - October 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

October NL Carousel

Fabric Community Update - October 2024

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