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
Daniel_playford
Regular Visitor

Show most recent data for different dates

Hello,

 

I have a dataset which keeps track of when people report issues and which issues they reported. A 0 code means no problem. 

 

People can report several issues at a time and they get entered as different items then. The amount is a simple 0 if problem code is 0 else 1. 

Daniel_playford_1-1629988517978.png

 

I want to be able to show for a certain date what the "current issues" at the time were. 

 

In below table you can see 3 columns, the first is simply the amount but this just add up every issue ever by everyone. 

Most recent measure = CALCULATE(SUM('data'[Amount]),LASTDATE('data'[Date])), i don't quite understand what this does but its not what I want. The "most recent table" is a calculated table:

Most recent problem =

FILTER (

            ADDCOLUMNS (

                'data',

                "IfMax", CALCULATE (

                       MAX ( 'data'[Date]),

                      FILTER ( 'data', 'data'[ID] = EARLIER ( 'data'[ID]) )

                 )

             ),

             [IfMax] = [Date]

)

Daniel_playford_2-1629988549067.png

 

This however also doesn't work, you can see for the 9th of april its blank and that's because that id has a later issue which overrules the 9th of april issue. 

 

I also want to show the amount of issues for different dates I got the cumulative amount of issues in a graph with: 

cumma amount= CALCULATE(sum('Most recent problem'[Amount]),FILTER(ALL('Most recent problem'[Date]),'Most recent problem'[Date] <= MAX('Most recent problem'[Date]))) which looks like:

 

Daniel_playford_0-1629988483527.png

 

But this isn't the amount for each date, it's just the total for issues where there's no future issue. 
Below is a sample date set which I made to work with

https://www.dropbox.com/s/i9fs7bfos4djd4z/Sample%20power%20bi.pbix?dl=0

 

If things aren't clear you can message me or respond and then I'll try to clarify or edit.

Thank you in advance,

with kinds regard

Daniel

 

 

2 REPLIES 2
lbendlin
Super User
Super User

you may want to play with more visualizations.  Oftentimes graphical solutions are sufficient

 

lbendlin_0-1630271229069.png

 

lbendlin_1-1630271327245.png

What decision are you trying to support with your report?

Thanks for the reply,

 

The goal is to get insight into the prevalence of different issues in the past. You could see the code as users and the different codes as qualitative feedback and then coded into one of several issue codes. The goal is to be able to see for example the 4th of April how many of each issue code was “active”, and this for every date.

 

With the graph and then issues code as problem you get this:

Daniel_playford_0-1630308347668.png

But this just shows an always increasing amout of issues. 

Below graph shows that per ID there is only 1 data point. While there should be 4 showing the amount of issues for every date that the ID has one. 

Daniel_playford_1-1630308863976.png

 

 

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.