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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
philorican
Frequent Visitor

Power BI bin, group by day using direct query

I am having issues displaying a graph in Power BI after I publish it in the cloud.  I realized that when I created a bin, grouped by day for resolved date and select it as part of the graph, I experience the issue.  But when I select the original date, the graph displays each day with time but not grouped day.  Any reason why it does not display the graph when using the bins?

bin_day.png 

 

 

2 REPLIES 2
v-caliao-msft
Employee
Employee

Hi @philorican,

 

I have tested it on my local environment, we can not reproduce this issue. Here is my sample data.
Untitled.png

Then create a bin measure by using the DAX below.
Bins = CALCULATE(COUNTROWS(FILTER('Table',and('Table'[SaleAmount] >= min(Buckets[Min]),'Table'[SaleAmount]<= MAX(Buckets[Max])))))

And this measure works well after published report to Power BI services.

Capture.PNG

 

In your scenario, please provide us your report details and some sample data, so that we can make further analysis.

 

Regards,

Charlie Liao

Charlie,

 

I forgot to mention that I am using Power BI gateway via DirectQuery. 

Direct_Query.png

Here are examples of the report I created and details.  Please note that the count are the summary count of each closed ticket for the days they were closed.  I just removed the ticket numbers so I can get a daily summary count on the report.  You'll need to create some tickets to recreate my issue.

Resolved date fields: Original field vs Group Bin FieldResolved date fields: Original field vs Group Bin Field

 

Resolved Date Day Group BinResolved Date Day Group Bin

 

Resolved date original formatResolved date original format

 

This is the result I get when I publish the report to Power BI.  The Group Bin just spins with no data while the original date format shows the result.This is the result I get when I publish the report to Power BI. The Group Bin just spins with no data while the original date format shows the result.

 

 

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

Top Solution Authors
Top Kudoed Authors