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.
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")
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 |
---|---|
10 | |
9 | |
8 | |
7 | |
6 |
User | Count |
---|---|
14 | |
13 | |
11 | |
9 | |
8 |