Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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] ))
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
104 | |
101 | |
79 | |
72 | |
64 |
User | Count |
---|---|
142 | |
108 | |
101 | |
81 | |
74 |