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
Anonymous
Not applicable

Histogram Struggles - DAX Measure

Dear Power BI Community,

 

I have a measure that calculates the total of something and I have not found out a way to not use a measure. Is there a way to create bins for a measure?

 

My table is set up like this from a report:

IDCheck DateHours
1241/10/202010
1241/10/202010
1241/3/202015
5481/3/20205
5481/10/20206

 

I do have a measure that gets me the following table:

IDHours
12435
54811

 

My end goal is to be able to make a histogram with a unique count of ID as the value and hours (bins) as the x-axis. So I need to make sure total hours is a calculated column.

 

Any help on this would be appreciated

2 REPLIES 2
harshnathani
Community Champion
Community Champion

Hi @Anonymous ,

 

You can have a look at this video for custom bins and creating histograms.

 

Regards,
Harsh Nathani

Did I answer your question? Mark my post as a solution! Appreciate with a Kudos!! (Click the Thumbs Up Button)

Mariusz
Community Champion
Community Champion

Hi @Anonymous 

 

On the attached, you will find a file with a solution.

 

Essentially you can just create a relationship between your summarized table and Original table and later use Bins table to slice end dice.

 

The attache has two versions of bins table Power Query and DAX that you already have.

 

 

Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.

 

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