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 Team,
I have created 2 line graphs, which is like last 6 months and 6 weeks view and also a dropdown for interaction with this line graph, see below
what i want is when i select the dropdown let say End of the month dropdown , lets say august 31st, it turns the graph like below
ideally what i want is when i select August 31st from the dropdown, i need the line grpah to show me August 31st and 6 months backward trend?
here is my pbix, appreciate any help
https://drive.google.com/file/d/1VKiy7yCzY7Aai3mHvctIHH5ITO4cOKQ6/view?usp=sharing
Solved! Go to Solution.
Hi,
You may refer to my solution in the attached PBI file.
Hope this helps.
pls ignore i manage to find a solution
i created another measure
@danextian thanks, could you check how i can interact this dropdowns to my Cards and graph, its available, in the Pbix, i think we need to apply some creative DAX
i am not abe to find a work around, given that we have now disconnected tables for End of week and End of month
Hi @vinodDrinkPak ,
You need to create disconnected dates table to reference in your measure. If you don't, the visual will show the dates within the range selected from the slicer. The disconnected dates table doesn't have a relationship to the fact table and can be created either in DAX, M or enter data. You will then need to create a measure that references the date selected from the disconnected table.
Sample measure:
Inbound2 =
VAR __END_DATE =
MAX ( 'Dates(Disconnected)'[End of Month] )
VAR __START_DATE =
EDATE ( __END_DATE, - 6 )
RETURN
CALCULATE (
DISTINCTCOUNT ( RECEIPT_CONTAINER[CONTAINER_ID] ),
FILTER (
RECEIPT_CONTAINER,
RECEIPT_CONTAINER[End of Month] >= __START_DATE
&& RECEIPT_CONTAINER[End of Month] <= __END_DATE
)
)
Please refer to the attached pbix.
Proud to be a Super User!
its so cool, can you help me with the End of Week dropdown as well. thank so much, you are a savior
looks like its broken the dropdown
@danextian i replicated your formula for End of week
EDATE function is for adding to or subracting x months from a date. The variable below is equivalent to selected date - 6 months.
VAR __START_DATE =
EDATE ( __END_DATE, - 6 )
Use this instead
VAR __START_DATE =
__END_DATE - ( 6 * 7 )
Proud to be a Super User!
@danextian thanks for the response
it doesn't work still, see below, i have used this dax
Hi @vinodDrinkPak ,
This was my suggestion as the variable:
VAR __START_DATE =
__END_DATE - ( 6 * 7 )
but you wrote:
VAR __START_DATE =
EDATE ( __END_DATE, - 6*7 )
Proud to be a Super User!
@danextian i think this formulas are not interacting with my cards and other visuals? do i need to make some tweak, i am aware the slicer you have used is coming from disconnected table
earliers it was from the Receipt container tables and was working with all visuals, now given that we have brought in disconnected tables, i am not able to interact with other visuals, as its only interacting with Line graphs
any solution you could share?
hi, are you able to support or share some idea to help?
Otherwise these disconnected tables will not help, it may only help for the line graph, not the visuals on my dashboard
here is my pbix file, i have been looking for solution since last 2 days, any help will be highly appreciated
https://drive.google.com/file/d/1EP3BMNtm3ueuFrl0V9a_S5QB_tDXWas6/view?usp=sharing
pls ignore i manage to find a solution
i created another measure
User | Count |
---|---|
117 | |
75 | |
61 | |
50 | |
44 |
User | Count |
---|---|
175 | |
125 | |
60 | |
60 | |
58 |