Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
I have a measure:
Solved! Go to Solution.
You may need a separate measure for this. First, create your regular measure for Less than 15 days and then create a new measure like the following.
SUMX(
VALUES('Table'[Break-down Column]),
[Less than 15 Days (StoreLoc)]
)
or the multiple columns version:
SUMX(
SUMMARIZECOLUMNS(Column1, Column2, ...),
[Less than 15 Days (StoreLoc)]
)
I hope this work.
Julio V.
that worked perfectly! thank you so much for your help! 🙂
You need to put your IF statement inside a SUMX like follows:
SUMX(
VALUES('Purchase Orders'[Purchase Order #]),
IF('Purchase Orders'[Stor Loc Measure] > 0 && 'Purchase Orders'[Stor Loc Measure] < 15, 1, 0)
)
If the previous doesn't work you can create a new measure as follow:
SUMX(
VALUES('Purchase Orders'[Purchase Order #]),
[Less than 15 Days (StoreLoc)]
)
I hope this helps.
Best,
Julio V.
Hi,
That worked, however my grand totals are a little bit off.
For example = 14 + 13+ 9 = 36
in the matrix it says total = 34
Hi,
You need to put inside the values the column you are using to break down your data. If you need to break down with multiple columns you can use the SUMMARIZECOLUMN function instead. In the scenario you shared it would be:
SUMX(
VALUES('Purchase Orders'[Loc]),
IF('Purchase Orders'[Stor Loc Measure] > 0 && 'Purchase Orders'[Stor Loc Measure] < 15, 1, 0)
)
Let me know if this works.
Julio V.
Where would I add in the summarize columns.
I tried your last formula but it just returned 0.
This is the stor loc measure for context:
You may need a separate measure for this. First, create your regular measure for Less than 15 days and then create a new measure like the following.
SUMX(
VALUES('Table'[Break-down Column]),
[Less than 15 Days (StoreLoc)]
)
or the multiple columns version:
SUMX(
SUMMARIZECOLUMNS(Column1, Column2, ...),
[Less than 15 Days (StoreLoc)]
)
I hope this work.
Julio V.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
14 | |
11 | |
10 | |
10 | |
9 |
User | Count |
---|---|
18 | |
13 | |
12 | |
11 | |
8 |