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.
Hi,
I am using a formula to create the SUM of a measure:
Total Underutilisation = IF(HASONEVALUE([name]), [Measure], SUMX(VALUES([name]), [Measure]))
I actually have two fields filtering the calculated Underutilisation, the name as well as the account.
These two columns are from two different and unrelated tables.
I was told I could use SUMMARIZE in the formula below:
=IF(HASONEVALUE([name]), [Measure], SUMX(SUMMARIZE([Table], [Column1], [Column2], "Custom"), [Custom]))
But my problem is that both the columns are from two different and unrelated tables, so I cannot use the ADDCOLUMNS and RELATED formulas either:
=IF(HASONEVALUE([name]), [Measure], SUMX(SUMMARIZE(ADDCOLUMNS([Table], "Custom", RELATED(Table2[Column2])), Table[Column], [Custom])))
Solved! Go to Solution.
Have you already tried something like below?
NewMeasure =
IF (
HASONEVALUE ( Table[Name] ),
SUMX (
CROSSJOIN ( VALUES ( Table1[Column1] ), VALUES ( Table2[Column2] ) ),
[Measure]
)
)
You could also consider using TREATAS() to pass in a filter from the second table.
Regards,
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
Hi, @Anonymous
Please correct me if I wrongly understand your question.
Without having relationships, and you need to create measure that shows corresponding result to the unrelated tables, you can try to use TREATAS function.
In this case, because there are two unrelated tables, I used two times of TREATAS in the measure.
you can find the link below that is the sample pbix file.
Hi, My name is Jihwan Kim.
If this post helps, then please consider accept it as the solution to help other members find it faster.
Have you already tried something like below?
NewMeasure =
IF (
HASONEVALUE ( Table[Name] ),
SUMX (
CROSSJOIN ( VALUES ( Table1[Column1] ), VALUES ( Table2[Column2] ) ),
[Measure]
)
)
You could also consider using TREATAS() to pass in a filter from the second table.
Regards,
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
Thank you, the CROSSJOIN worked perfectly for me!
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 |
---|---|
21 | |
7 | |
6 | |
5 | |
5 |
User | Count |
---|---|
27 | |
10 | |
10 | |
9 | |
6 |