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

Get Fabric certified for FREE! Don't miss your chance! Learn more

Reply
Magnus_Hedlund
Frequent Visitor

Simple noob calulation help

Hi,

 

I'm a noob on using Power BI and have tried to find a solution for this on my own but without success.

I have one table at the moment with alot of columns where three columns are of importance.

- ID (string)

- Created date (date/time)

- Resolved date (date/time)

 

I would like to divide the amount of [ID] per [Resolved date] with the amount of [ID] per [Created date] and visualize this result per calender month. How would I go about to achieve this?

 

Thanks in advance for any help

2 REPLIES 2
Greg_Deckler
Community Champion
Community Champion

@Magnus_Hedlund You will need a disconnected Date table or a Date table with an active and inactive relationship. If you use a disconnected table you would use the Dates[Date] column in the x-axis of something like a clustered column visual and your 2 measures would be something like this:

Created Measure = 
  VAR __Dates = DISTINCT('Dates'[Date])
  VAR __Table = FILTER('Table', [Created date] IN __Dates)
  VAR __Result = COUNTROWS(__Table)
RETURN
  __Result

Resolved Measure = 
  VAR __Dates = DISTINCT('Dates'[Date])
  VAR __Table = FILTER('Table', [Resolved date] IN __Dates)
  VAR __Result = COUNTROWS(__Table)
RETURN
  __Result

 

Now, if you have a true timestamp of something other than 12:00:00 AM then you might have to do this:

Created Measure = 
  VAR __Dates = DISTINCT('Dates'[Date])
  VAR __Table = FILTER('Table', TRUNC([Created date]) IN __Dates)
  VAR __Result = COUNTROWS(__Table)
RETURN
  __Result

Resolved Measure = 
  VAR __Dates = DISTINCT('Dates'[Date])
  VAR __Table = FILTER('Table', TRUNC([Resolved date]) IN __Dates)
  VAR __Result = COUNTROWS(__Table)
RETURN
  __Result

 

 



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

HI @Greg_Deckler 

Thx for the reply.

This seems complicated...

As the tool can visualize the number of [ID] per [Created date].[Month] and [Resolved date].[Month] respectively I hope there is an easier way because it is basically a divide of those 2 visualization that I am seeking. 

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.