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 have raw data as below:
- table 1:
whereas, within this table each user ID might be repeated within the same month based on the stream code he used during the month.
- table 2:
I'm trying to use a matrix visual with Stream name in the rows and stream name1 in the columns and the value should be distinct count of users who use every two streams.
can you please help with the measure?
thank you
Hi @TamerOmki ,
Could you please provide sample data and expected output? That will help us provide you with the right solution.
Best regards,
Mengmeng Li
Thank you, within below link you will find the data:
https://docs.google.com/spreadsheets/d/1sqeFj_VjTEtFli9hranSLtn9c0CQ2HeE-3QoURlu_UU/edit?usp=sharing
Hi @TamerOmki ,
You want to count distinct users who used each pair of stream names, using Stream Name (rows) and Stream Name1 (columns).
UserCount =
CALCULATE(
DISTINCTCOUNT('Table1'[User ID]),
CROSSFILTER('Table1'[Stream Code], 'Table2'[Stream Code], BOTH)
)
Ensure relationships: Table1[Stream Code] → Table2[Stream Code] (Many-to-One).
Create Matrix Visual:
Thank you, I tried this measure but the result was as attached pic
Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).
Do not include sensitive information. Do not include anything that is unrelated to the issue or question.
Please show the expected outcome based on the sample data you provided.
Thank you
Thank you, within below link you will find the data:
https://docs.google.com/spreadsheets/d/1sqeFj_VjTEtFli9hranSLtn9c0CQ2HeE-3QoURlu_UU/edit?usp=sharing
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 |
---|---|
26 | |
10 | |
10 | |
9 | |
6 |