Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Hello everyone!
I created a line chart in power bi desktop but I only want to show the latest numbers. Can anyone show me how to do that please?
Original chart has all numbers showing for each month
The result I'm hoping to achieve (below is from excel that I was able to delete the numbers from previous month mannually):
Thank you in advance for your help!
Solved! Go to Solution.
Create the two measure above.
I hope I have been helpful.
Mark it as a solution if resolve your problem.
Ciao!
Foglio1 is the table [data] is the field of the calendar date.
in italian DATA is DATE.
I hope I have been helpful.
Mark it as a solution if resolve your problem.
Ciao!
Yes in ALL and ALLSELECTED formula there is the solution if you have a date table with futures dates.
I'm happy I have been helpful.
Mark it as a solution if resolve your problem.
Ciao!
My fault, I missing double quotes and i use white instead of transparent.
Here is correct with two measure:
I hope I have been helpful.
Mark it as a solution if resolve your problem.
Ciao!
Hi Lucadelicio,
Thanks for your fast reply. Do you mind sharing with me a screenshot of your pbix? my company blocked the site you sent me.
Create the two measure above.
I hope I have been helpful.
Mark it as a solution if resolve your problem.
Ciao!
Hi Lucadelico,
Sorry to bother you again.. do you mind expanding the data table so I can see what column you are referring to in your dax please? I got a bit confused by foglio1[data]
Foglio1 is the table [data] is the field of the calendar date.
in italian DATA is DATE.
send me your mail in private message please
Try to use the conditional formatting passing a measure that returns the color with the condition in wich date it will be.
MEASURE =
var _maxdate =
CALCULATE(
MAX(Sales[date])
,ALL(Sales)
)
RETURN
IF(_maxdate < MAX(Sales[date]), #FFFFFF, #000000)
I use white and black.
White i think is the color of your background.
I hope I have been helpful.
It's more easier to help you if you upload your pbix.
Mark it as a solution if resolve your problem.
Ciao!
Hi Lucadelicio,
I tried to reply to your PM but the system said I reached the maximum number of pm so I couldn't send it.
I have a follow up question.
I've got two tables, one transaction table and one calendar table. See below.
I created relationship by linking 'calendar date' with 'Date'. I want to use 'start of month' in X-axis in the line chart. In this case, how should I modify the dax you created?
Table 1 is the calendar table (I didn't write out all dates)
Calendar date | start of month |
5/1/2022 | 5/1/2022 |
5/2/2022 | 5/1/2022 |
5/3/2022 | 5/1/2022 |
6/1/2022 | 6/1/2022 |
6/2/2022 | 6/1/2022 |
Table 2 shows transactions
Date | A | B | C | D | E |
5/1/2022 | 3 | 7 | 21 | 21 | |
5/2/2022 | $5 | $9 | $10 | $45 | $50 |
5/3/2022 | $15 | $12 | $18 | $34 | $35 |
6/1/2022 | $20 | $16 | $22 | $28 | $34 |
6/2/2022 | $12 | $30 | $25 | $45 | $60 |
I hope I have been helpful.
Mark it as a solution if resolve your problem.
Ciao!
Yes in ALL and ALLSELECTED formula there is the solution if you have a date table with futures dates.
I'm happy I have been helpful.
Mark it as a solution if resolve your problem.
Ciao!
If I use MAX(Table1[Startofmonth]), it will be december 1st because my calendar table goes up to december. However, my transaction table only has data from most current month.
Send me in email the fake pbix that rappresent your situation and I will fix tou
can you share the pbix. It's easier to help you.
I'm sorry I can't share it due to company privacy policy
share me a excel seample fake data.
So i can try on your dataset.
The table shows the data used for creating the first chart in my original post
A | B | C | D | E | Total | |
5/1/2022 | 3 | 7 | 21 | 21 | 52 | |
6/1/2022 | $5 | $9 | $10 | $45 | $50 | $119 |
7/1/2022 | $15 | $12 | $18 | $34 | $35 | $114 |
8/1/2022 | $20 | $16 | $22 | $28 | $34 | $120 |
9/1/2022 | $12 | $30 | $25 | $45 | $60 | $172 |
Check out the September 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
112 | |
105 | |
96 | |
38 | |
30 |