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 problem that I cant seem to figure out how to solve, have been browsing through this forum and I cant find anything that works for me
I want to create a measure "X" that gives me 1 or 0 depending if two conditions are met
I have a "Letter Code" which is from Table1, "Type" & "Doc exp" from Table2 and Date from Date table.
Measure2 and Measure3 show a specific date when an event occurs
On top of that I also have Activity from Table3
What I want to be able to give the measure the value 1 if Table1[Type] is equal to Table3[Activity], and the Date of that activity is before the date on Measure2&3
By doing that I could then filter out measure2&3 out of the upper table so it wouldnt appear
The data is in a cube so I am not able to easily modify the data
Hope I made myself clear enough
Best regards
Solved! Go to Solution.
Hi,
According to your description, I can roughly understand your requirement, I think you can try this measure to achieve your needs:
This is the test data I created based on your description:
Measure =
IF(MAX('Table1'[Type])=MAX('Table3'[Activity])&&MAX('Table3'[Date])<=[Measure2]&&MAX('Table3'[Date])<=[Measure3],1,0)
And you can create a table chart to place it like this to get what you want:
You can download my test pbix file below
If this result is not what you want, you can post some sample data(without sensitive data) and your expected result.
How to Get Your Question Answered Quickly
Thank you very much!
Best Regards,
Community Support Team _Robert Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi,
According to your description, I can roughly understand your requirement, I think you can try this measure to achieve your needs:
This is the test data I created based on your description:
Measure =
IF(MAX('Table1'[Type])=MAX('Table3'[Activity])&&MAX('Table3'[Date])<=[Measure2]&&MAX('Table3'[Date])<=[Measure3],1,0)
And you can create a table chart to place it like this to get what you want:
You can download my test pbix file below
If this result is not what you want, you can post some sample data(without sensitive data) and your expected result.
How to Get Your Question Answered Quickly
Thank you very much!
Best Regards,
Community Support Team _Robert Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
I think this is what I am trying to do, but I need to do this in a measure, not by adding a column
Column = IF(Table1[Country]&Table1[Currency]=Table1[Country]&RELATED(Table2[Currnecy]),"Government Bond","Coprorate Bond")
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 |
---|---|
47 | |
24 | |
20 | |
15 | |
13 |
User | Count |
---|---|
51 | |
46 | |
39 | |
19 | |
19 |