Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
I have a question.
Suppose that i have a single date filter/slicer, and i have a line graph like above.
So if i choose 1-October-2017 on the filter, then the line graph will show data from Date 1-Oct-2017 till 31-Oct-2017.
Or if i choose 1-December-2016 on the filter, then the line graph will show data from Date 1-Dec-2016 till 31-Dec-2016.
How can i do that in power BI? should i manage the table relationship? or is there any other trick to do that?
Thanks in advance.
Solved! Go to Solution.
Hi @deckamaha,
I try to reproduce your scenario using the sample table below.
First, you need to create a new date table only have the date column using the formula by click "New Table" under Modeling on home page.
Date = SELECTCOLUMNS(Table1,"Date",Table1[Date])
Then create a measure using the formula.
Measure =
CALCULATE (
MAX ( Table1[sale] ),
FILTER ( Table1, Table1[Month] = MONTH ( SELECTEDVALUE ( 'Date'[Date] ) ) )
)
Finally, create a slicer including 'Date'[Date], a line chart including [Date] and measure. When you select 1-October-2017 on the slicer, the line graph will show data from Date 1-Oct-2017 till 31-Oct-2017 as follows.
Please respond to me if you have any other problems.
Best Regards,
Angelia
Hello, I did the same steps, I created two tables : table 1 (with the columns: date, sales, month and year) and table date.
I used the measure that you put, but it shows me a a single date filter/slicer' a single value in the graph' like above !! Thanks for your help
Hi @deckamaha,
I try to reproduce your scenario using the sample table below.
First, you need to create a new date table only have the date column using the formula by click "New Table" under Modeling on home page.
Date = SELECTCOLUMNS(Table1,"Date",Table1[Date])
Then create a measure using the formula.
Measure =
CALCULATE (
MAX ( Table1[sale] ),
FILTER ( Table1, Table1[Month] = MONTH ( SELECTEDVALUE ( 'Date'[Date] ) ) )
)
Finally, create a slicer including 'Date'[Date], a line chart including [Date] and measure. When you select 1-October-2017 on the slicer, the line graph will show data from Date 1-Oct-2017 till 31-Oct-2017 as follows.
Please respond to me if you have any other problems.
Best Regards,
Angelia
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.
| User | Count |
|---|---|
| 47 | |
| 44 | |
| 40 | |
| 20 | |
| 15 |
| User | Count |
|---|---|
| 70 | |
| 68 | |
| 32 | |
| 27 | |
| 25 |