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, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
MattAdams
Helper I
Helper I

Need help finding the right function and syntax in PBI report

I have two tables (date, and issues table). The Date table has sequential dates for reference from 2016 to 2020 in order. My issues table has a list of work incidents, namely with a "closed date" and a "opened date". I would like to figure out how I can write a custom column to basically say "for each calendar date on the date table, did that calendar date  fall between the opened date and the closed date, if so, 1, else 0. Kind of complicated, which is why I'm bouncing it off you experts. Thanks for your consideration.

snip_20180221160031.png

4 REPLIES 4
Ashish_Mathur
Super User
Super User

Hi,

 

Your question is not clear.  Show both tables and the expected result.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Hi....

 

Below is the pic of the 2nd (issues) table. Showing the resolveddatewithnulllogic column. There's another column named opened date. I'm wanting to compare against the "calendar_date" rows in the date table (shown in first post) and say for each row in the task table, for between the opened date and resolveddatewithnulllogic was it open for each calendar date by day and if so mark a 1 operator, if not a 0 operator. Does that clear my question up? The goal is to see what issues were open for each calendar_date day in the date table to look at open tickets (issues).

snip_20180226102002.png

Greg_Deckler
Super User
Super User

Hey @MattAdams, can I inquire as the how you are expecting to visualize this? Is what you are trying to achieve that you could click an issue and then have a table of all of the dates that issue was open? Or are you trying to aggregate this in some way? Trying to understand the use case. 



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!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

It will be shown with a area chart/graph, showing the count of open issues by day or week....This will ultimately show a trend when the count by time buckets (1-2 days, 2-5 days, etc) rise in count by day or week, or drop. This ultimately shows how much work we are getting done or not done. Does that help? Its basically to show aging work and how its getting done as days and weeks progress.

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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