Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
Hello,
please could somebody help me with my problem?
I have many XML files with call logs and one excel file with attendance of operators.
XML file contains ID of the phone, date of the call and some other stuff.
Excel file contains ID of the phone, date of the attendance of the operator, time from, time to (when the operator started and finished work that day) and the operator's name.
What I need is to add a new column in the XML files in Power BI and type in the name of the operator who managed the call. So it should search somehow the ID of the phone with the date and then check if the time is older or equal to the time "from" and simultaneously that the time is younger or equal to the time "to", if everything meet the conditions, than it should type in the column "name" the name from the row which met the conditions.
Is that possible in Power BI somehow? I hope it is because I need to automatize this process fullfully (with no manual step like preparing CSV files) so I would be able to create reports from the data.
Thank You!!!
Tereza
Solved! Go to Solution.
Hi @TessGaston
You may use SELECTEDVALUE Function. Show you an example as below:
Measure =
MINX (
FILTER (
Excel,
SELECTEDVALUE ( XML[Time] ) > Excel[Start]
&& SELECTEDVALUE ( XML[Time] ) < Excel[End]
),
Excel[Name]
)
Column =
MINX (
FILTER ( Excel, XML[Time] > Excel[Start] && XML[Time] < Excel[End] ),
Excel[Name]
)Regards,
Cherie
Hi @TessGaston
You may use SELECTEDVALUE Function. Show you an example as below:
Measure =
MINX (
FILTER (
Excel,
SELECTEDVALUE ( XML[Time] ) > Excel[Start]
&& SELECTEDVALUE ( XML[Time] ) < Excel[End]
),
Excel[Name]
)
Column =
MINX (
FILTER ( Excel, XML[Time] > Excel[Start] && XML[Time] < Excel[End] ),
Excel[Name]
)Regards,
Cherie
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.
| User | Count |
|---|---|
| 48 | |
| 40 | |
| 37 | |
| 20 | |
| 15 |
| User | Count |
|---|---|
| 70 | |
| 67 | |
| 32 | |
| 27 | |
| 25 |