Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Hi,
I have a measure which gives week 1 value always, but i need to repeat the value in all the rows.
PFB screenshots for reference.
My result:
Expected result:
Thanks in advance.
Solved! Go to Solution.
@SravaniG - Try out this measure:
Hi, @SravaniG
Based on your description, I created data to reproduce your scneario. The pbix file is attached in the end.
Sales Measure:
Sales Measure =
IF(
MAX('Table'[Store])="s1",
2
)
You may create a new like below.
New Sales Measure =
SUMX(
ADDCOLUMNS(
ALL('Table'),
"Result",
IF(
[Store]="S1",
2
)
),
[Result]
)
Result:
Best Regards
Allan
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @SravaniG
Based on your description, I created data to reproduce your scneario. The pbix file is attached in the end.
Sales Measure:
Sales Measure =
IF(
MAX('Table'[Store])="s1",
2
)
You may create a new like below.
New Sales Measure =
SUMX(
ADDCOLUMNS(
ALL('Table'),
"Result",
IF(
[Store]="S1",
2
)
),
[Result]
)
Result:
Best Regards
Allan
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@SravaniG - Try out this measure:
@SravaniG , This seems like both for store and week
try measure like
calculate([sales], all(Table) )
or
calculate([sales], all(Table[week]), all(Table[Store] ))
User | Count |
---|---|
92 | |
85 | |
77 | |
66 | |
62 |
User | Count |
---|---|
110 | |
95 | |
95 | |
64 | |
59 |