Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
Hello
I have a question and appreciate it if you answer.
I have a table in which the data for sales of different products has been stored daily.
to elaborate more:
each day, the number of sold products is different and for some products, it may be 0 sales.
what I want:
I want to calculate the standard deviation. it would be a one constant number. I want to show the std of #number of sold products as a constant line in the line chart over time.
I tried to this dax codes:
Try
Standard dev all time =
VAR summaryTable =
CALCULATETABLE (
ADDCOLUMNS (
SUMMARIZE ( 'Reports sale', 'Reports sale'[Date] ),
"@sales", CALCULATE ( SUM ( 'Reports sale'[productssold] ) )
),
REMOVEFILTERS ( 'Reports sale'[Date] )
)
RETURN
STDEVX.P ( summaryTable, [@sales] )
hi johnt75,
Thanks for your response .
I tried your solution, But It does not give me the constant number; when I tried to show it on the table, the std value cahnges over time , and when I drill down to day it becomes 0 .
from report[date] table .
Which table is the Month / Day in your table visual coming from ?
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the September 2025 Power BI update to learn about new features.
User | Count |
---|---|
14 | |
13 | |
11 | |
10 | |
10 |