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 Measure that works perfectly, however, I need to have this measure converted to a column so that I can add this to my Visualation. Please note the Timeframe_1 is coming from a DirectQuery PBI. All I really need is the if statement in the last two formulas to be a column so i can show post vs pre and/or calculate % of Post/Pre.
I currently have two columns:
Solved! Go to Solution.
pls try this to create a column
Column = maxx(FILTER('Direct Query','Desktop PBI'[employee_ID]='Direct Query'[employee_ID]&&'Direct Query'[Course]=887744) ,'Direct Query'[comp_train])
Proud to be a Super User!
could you pls provide the sample data and expected output?
Proud to be a Super User!
Certainly. The data is correct in the Measure I just need to have the same data in a column so it can be added to the visual.
Below is the data including the two Measures I'm hoping to convert
Measure | Measure | ||
employee ID | start_date | Timeframe | DateDiff |
ab123 | 4/1/2022 | Pre-Training | -21 |
bc345 | 4/8/2022 | Pre-Training | -14 |
de678 | 4/15/2022 | Pre-Training | -7 |
fg901 | 4/21/2022 | Pre-Training | -1 |
hi234 | 4/22/2022 | Post-Training | 3 |
jk567 | 4/25/2022 | Post-Training | 6 |
Below is what I'd like in a Calculated Column:
Calculated Column | Calculated Column |
Timeframe | DateDiff |
Pre-Training | -21 |
Pre-Training | -14 |
Pre-Training | -7 |
Pre-Training | -1 |
Post-Training | 3 |
Post-Training | 6 |
Thank you
could you pls provide the sample data? if we dont know your data structure, we can't create the calculated column
Proud to be a Super User!
I have a .pbix file that has the data, but while i have seen others upload thes to this site i don't see an option to do so. when i try to drag and drop the attachement it doesn't allow .pbix files or .zip files. please let me know how to upload this file to this site for you to be able to review.
Thanks
Is there a way to add a power bi attachement? I don't see the option availble here. i can add a PBI that should show this but not sure how. I only see options for adding media, photo, video, HTML, and Emoji's I don't see how to attach a PBI file. Sorry, I'm fairly new to this board.
Thanks
you can use onedrive to share, or you can just create some dummy data and paste in the reply.
Proud to be a Super User!
ryan_mayu,
thank you for all of your assistance. I was able to get this to work with what you sent me. I apprecaite all of your assistance.
I've tried copy and paste of the pbi it didn't like it I had an error message I'll try again or try OneDrive
i can't open the link
Proud to be a Super User!
please try the above file. You should be able to open this file. Sorry but it won't let me add a .PBIX file to this comment box.
pls try this to create a column
Column = maxx(FILTER('Direct Query','Desktop PBI'[employee_ID]='Direct Query'[employee_ID]&&'Direct Query'[Course]=887744) ,'Direct Query'[comp_train])
Proud to be a Super User!
That was what I needed. Thank you so much!
you are welcome
Proud to be a Super User!
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 |
---|---|
110 | |
99 | |
80 | |
64 | |
57 |
User | Count |
---|---|
145 | |
110 | |
91 | |
84 | |
66 |