Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
hello,
i would like to make a accumlative / pareto chart by year-month, in clustered chart.
i also make 2 reports :
A - first i make using import data from DB source directly
then
B - i make the report using SSAS from the DB source
so i make the DAX as follow :
Regarding the use of SUMMARIZE... I encourage you to read this: All the secrets of SUMMARIZE - SQLBI, and then regardnig the use of ALLSELECTED, I encourage you to read this: The definitive guide to ALLSELECTED - SQLBI
By the way, your "currentmon" can't return more than 1 value because you then use it in an expression with "<=" and this requires a scalar. I don't think SELECTCOLUMNS is the right function to use in this context. There are much better ones. For example, SELECTEDVALUE (supported in DirectQuery).
@Kagechiyo , Try a measure like
var currentmon =
maxx(allselected('VW_FactDetailUnit'),'VW_FactDetailUnit'[month])
var sumtabledax =
SUMMARIZE(
ALLSELECTED('VW_FactDetailUnit'),
'VW_PC_FactDetailVIN'[dDate],
"kumakun", SUM('VW_FactDetailUnit'[Qty]))
var cummulativesum =
SUMX(
FILTER(sumtabledax, MONTH('VW_FactDetailUnit'[dDate]) <= currentmon),
[kumakun]
)
return
cummulativesum
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
20 | |
7 | |
6 | |
5 | |
5 |
User | Count |
---|---|
26 | |
10 | |
10 | |
9 | |
6 |