Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and a 50 percent discount on exams.
Get startedEarn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
I have a sales order list as i need the order booking list of last 7 days, so how can i do by using dax funtion.
Hi, @Anonymous
Can you provide some sample data or simple pbix files? Sensitive information can be removed in advance. What kind of expected results do you expect? You can also show it with pictures.
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Try this one.
Last 7 Days =
CALCULATE (
COUNTROWS ( 'Table' ),
KEEPFILTERS ( DATESINPERIOD ( 'Table'[Date], TODAY (), -7, DAY ) )
)
@Anonymous
The measure would be something like this.
Last 7 Days =
CALCULATE (
SUM ( 'Table'[Sales] ),
KEEPFILTERS ( DATESINPERIOD ( 'Table'[Date], TODAY (), -7, DAY ) )
)
In the Query Editor, ensure that the Data Type of the Sales column is numeric.
User | Count |
---|---|
96 | |
86 | |
78 | |
72 | |
67 |
User | Count |
---|---|
110 | |
104 | |
84 | |
65 | |
63 |