Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hi all,
I'm new to powerbi but enjoying it so far.
I have some data in the format below. I'm trying to establish trends/patterns in this data
The RefNo can have multiple rows of data as it changes over time. E.g RefNo 2 starts on 22/09/17 with amount £1301 and finshed at 15/08/18 amount £3017.93. I'd like to see if this is common across all data, i.e we finsh higher than we started.
I'm not sure how I can achieve this or how best to visualise it and would appreciate any help and/or recommendations.
RefNo | Date | Amount | Position |
1 | 26/09/2017 | 3315 | 0 |
2 | 22/09/2017 | 1301 | 4 |
2 | 17/10/2017 | 4600 | 2 |
2 | 13/11/2017 | 3017.93 | 1 |
2 | 15/08/2018 | 3017.93 | 0 |
3 | 27/09/2017 | 1301 | 1 |
3 | 11/10/2017 | 0 | 0 |
4 | 27/09/2017 | 0 | 0 |
5 | 09/10/2017 | 1301 | 2 |
5 | 31/01/2018 | 1200 | 1 |
5 | 05/02/2018 | 1162.23 | 0 |
6 | 16/10/2017 | 1301 | 3 |
6 | 10/05/2018 | 500 | 2 |
6 | 08/06/2018 | 414.76 | 1 |
6 | 07/08/2018 | 414.76 | 0 |
Solved! Go to Solution.
HI @MrToast20
I didn't do modelling on the data, just put them in the visual. pbix attached for your ease.
@MrToast20 , is your issue resolved?
Hi @MrToast20
Please kindly check whether you'd like to get below visualization:
Not quite sure about the meaning of position, so I didn't put it in. Please disclose more details about your requirements that I provide further help.
Hi @v-diye-msft
Thanks. That looks better. What is your formula for Amount?
Also what does it look like if you select RefNo 2 in the slicer?
HI @MrToast20
I didn't do modelling on the data, just put them in the visual. pbix attached for your ease.
Create a new column
Last date = maxx(filter(table,table[RefNo]= earlier(table[RefNo])),table[date])
last value = maxx(filter(table,table[RefNo]= earlier(table[RefNo]) && table[date]= earlier(table[Last date]) ),table[Amount])
Appreciate your Kudos. In case, this is the solution you are looking for, mark it as the Solution.
In case it does not help, please provide additional information and mark me with @
Thanks. My Recent Blogs -Decoding Direct Query - Time Intelligence, Winner Coloring on MAP, HR Analytics, Power BI Working with Non-Standard TimeAnd Comparing Data Across Date Ranges
Proud to be a Datanaut Connect on Linkedin
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
99 | |
68 | |
46 | |
39 | |
33 |
User | Count |
---|---|
164 | |
111 | |
61 | |
53 | |
38 |