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
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
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.

Top Solution Authors
Top Kudoed Authors