Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hi,
in my report I have a table with events data and a time dimension.
The events table relates to the date table with the field "Start date".
I would like to create a measure that returns one of the properties in the month table of the dimension, using the existing relations, that corresponds to the month of the first registered event.
e.g., if the first event happened at 12:00 of september 16th 2021, the measure should return 2021-09, which is the "short name" property of the month table.
Can someone help?
Thank you
Edit: I add below the schema of the tables, highlighting the involved fields for each relation using different colors.
Solved! Go to Solution.
Hi , @fpennisi
According to your description, you want to get the content of one-end table in multi-end table. And you want to convert "2021/9/16 12:00" to 2021-09.
First of all, for your needs, we must first clarify that only one section of the table can filter the multi-terminal table;
The first way is to directly place the fields of one end table, and then check whether it can meet your needs.
The second is that you can create this measure to try :
Measure = MAXX( ADDCOLUMNS('DownTimes' , "shortname" ,RELATED('Month'[Short name])) , [shortname])
Secondly, for date conversion, in fact, we can directly use conditional formatting to convert date display:
Measure 2 = FORMAT( MAX('Date'[Date]) , "yyyy-mm")
If this method does not meet your needs, you can provide us with your special sample data and the desired output sample data in the form of tables, so that we can better help you solve the problem. (You can also upload you sample .pbix [without sensitive data] to the OneDrive and share with the OneDrive link to me ! )
Thank you for your time and sharing, and thank you for your support and understanding of PowerBI!
Best Regards,
Aniya Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Hi , @fpennisi
According to your description, you want to get the content of one-end table in multi-end table. And you want to convert "2021/9/16 12:00" to 2021-09.
First of all, for your needs, we must first clarify that only one section of the table can filter the multi-terminal table;
The first way is to directly place the fields of one end table, and then check whether it can meet your needs.
The second is that you can create this measure to try :
Measure = MAXX( ADDCOLUMNS('DownTimes' , "shortname" ,RELATED('Month'[Short name])) , [shortname])
Secondly, for date conversion, in fact, we can directly use conditional formatting to convert date display:
Measure 2 = FORMAT( MAX('Date'[Date]) , "yyyy-mm")
If this method does not meet your needs, you can provide us with your special sample data and the desired output sample data in the form of tables, so that we can better help you solve the problem. (You can also upload you sample .pbix [without sensitive data] to the OneDrive and share with the OneDrive link to me ! )
Thank you for your time and sharing, and thank you for your support and understanding of PowerBI!
Best Regards,
Aniya Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
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 |
---|---|
15 | |
10 | |
10 | |
10 | |
10 |
User | Count |
---|---|
19 | |
14 | |
13 | |
11 | |
8 |