Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by watching the DP-600 session on-demand now through April 28th.
Learn moreJoin the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now
Is there a visual in Power BI that I can use to achieve the below report that I have prepared in excel?
Daily, WTD and average
Thanks
Solved! Go to Solution.
Hi @Selded ,
First create a column in your fact table:
Month-day = FORMAT('Table'[date],"DD-MMM-YY")
Then create a dim table as below:
Table 2 = UNION(VALUES('Table'[Month-day]),ROW("name","WTD actual"),ROW("name","WTD Target"))
And a date table as below:
Date = CALENDAR("2021-1-1","2021-12-31")
Then create a measure as below:
Measure =
VAR _mindate =
MINX ( ALLSELECTED ( 'Table' ), 'Table'[date] )
RETURN
SWITCH (
SELECTEDVALUE ( 'Table 2'[Month-day] ),
"WTD actual",
CALCULATE (
SUM ( 'Table'[amount] ),
FILTER (
ALLSELECTED ( 'Table' ),
'Table'[date] >= _mindate
&& 'Table'[date] <= _mindate + 6
)
),
"WTD Target", 375466,
SUM ( 'Table'[amount] )
)
And you will see:
For the related .pbix file,pls see attached.
Best Regards,
Kelly
Did I answer your question? Mark my reply as a solution!
Hi @Selded ,
First create a column in your fact table:
Month-day = FORMAT('Table'[date],"DD-MMM-YY")
Then create a dim table as below:
Table 2 = UNION(VALUES('Table'[Month-day]),ROW("name","WTD actual"),ROW("name","WTD Target"))
And a date table as below:
Date = CALENDAR("2021-1-1","2021-12-31")
Then create a measure as below:
Measure =
VAR _mindate =
MINX ( ALLSELECTED ( 'Table' ), 'Table'[date] )
RETURN
SWITCH (
SELECTEDVALUE ( 'Table 2'[Month-day] ),
"WTD actual",
CALCULATE (
SUM ( 'Table'[amount] ),
FILTER (
ALLSELECTED ( 'Table' ),
'Table'[date] >= _mindate
&& 'Table'[date] <= _mindate + 6
)
),
"WTD Target", 375466,
SUM ( 'Table'[amount] )
)
And you will see:
For the related .pbix file,pls see attached.
Best Regards,
Kelly
Did I answer your question? Mark my reply as a solution!
HI @Selded ,
You can use a Line and Clustered Column chart in Power BI to represent 2 metrics with common x-axis.
Something like below:
Thanks,
Pragati
okay, so is impossible to have the WTD, daily, and average all on the same chart right
HI @Selded ,
In what format your data is, it depends on that as well.
Can you share some sample data here?
Thanks,
Pragati
Check out the April 2026 Power BI update to learn about new features.
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.
| User | Count |
|---|---|
| 43 | |
| 38 | |
| 35 | |
| 21 | |
| 15 |
| User | Count |
|---|---|
| 63 | |
| 58 | |
| 28 | |
| 27 | |
| 25 |