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 All,
I am in the process of creating a measure that has already been created in MDX some time ago but works. The measure is as below;
(
[Measures].[Count of Trips],
LinkMember ([Enquiry Date].[Year-Quarter-Month-Date].currentmember, [Departure Date].[Year-Quarter-Month-Date] )
, [Enquiry Date].[Year-Quarter-Month-Date].[All]
,LinkMember ([Booking Employment Structure].[Full Name].Currentmember, [Employment Structure].[Full Name])
, [Booking Employment Structure].[Full Name].[All]
,LinkMember ([Booking Employment Structure].[Job Title].Currentmember, [Employment Structure].[Job Title])
, [Booking Employment Structure].[Job Title].[All]
, [Trip Workflow].[Workflow].[Workflow Step].&[3.Booking]
, [Cancellation Date].[Year-Quarter-Month-Date].[Year].&
)
So background as to what this is trying to do - I have two tables that are identical, Employment structure and Booking Employment structure. They each have a relationship to a single fact table called Trip. My organisation want to get a count of trips at each stage of the booking process using the Booking Employment Structure but wish to see a count of departures using the employment strucutre. I believe I need to use USERELATIONSHIP somewhere but am struggling to replicate the above in the test scenario. Below is a view of the table so far;
As you can see I'm using the Booking Employment structure[Full Name] in the table and need to create a measure to include another value using the Employment Strucutre[Full Name] in the table.
Hope that makes sense and thanks in advance
Solved! Go to Solution.
Hi there,
In the end I was able to figure out the issue using the TREATAS funciton
@SRobbo1990 , Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.
See if this blog can help
Hi there,
In the end I was able to figure out the issue using the TREATAS funciton
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
71 | |
70 | |
38 | |
28 | |
26 |
User | Count |
---|---|
98 | |
96 | |
59 | |
44 | |
40 |