I have 3 columns.
reciever ; date ; Name
me#mail.com;12-10-2022;John Doe
I would like to send an email to each row, where column 1 is the reciever of a mail.
in this mail I will also use column 2 and 3.
I have tried to use query the powerbi data with DAX and then using parse Json.
but I can only get this to work with 1 variable.
how should I create this flow?
this is my try:
Related
I'm trying to write and automate a MySQL query that gets ingested by some downstream reporting platforms. The platform requires the CSV to have an end or record indicator (EOR) to show the last record in the document. They're wanting a dollar sign ($) to indicate the EOR and, while it's easy to manually enter that, I want to automate the report but can't seem to find a way to enter the $ in the last row, last cell. Any ideas?
Example:
First name
Last name
DOB
Mike
Smith
1-1-1900
Mike
Jones
1-1-1900
$
Just append it with a UNION ALL statement -
<YOUR_SELECT_QUERY>
UNION ALL
SELECT '$', <NULLS FOR OTHER_COLS>;
You have to use as many NULLS in your last union statement as there are columns in your first query to match the no of columns in your query.
The Access make table below does the following:
Final app number 10 has three sub apps 6, 7 ,8 in AppCombinedAreasandRegions. Their FirstOfRegion (Memo Field) respectively are "a","b","c". Based on the make table, the ConcatRelated function will create a row in the output table as follows.
Project Application: 10
Region_list: "a,b,c"
Currently I have this part working.
The issue is the output table stores Region_List ("a,b,c") as a TEXT field, meaning there is a limit and the value from the ConcatRelated function gets truncated. Since the source is a memo field, there will be cases where it exceeds the 255 character limit.
Is there a way for Region_List to be a memo field instead of a text field when using the ConcatRelated function to get the concatenated output?
The answer was to append to the existing table (clearing it first), and setting the concatRelated column from Group By to Expression.
I need to develop quite a serious database in access and start building up the Main Menu.
So far I have (I have broken the problem down to a sample DB):
a) Set up a Table of Data (Table1) (Column 1 = Name, Column 2 = No of Staff (Numeric))
So my Data looks like this
Name No of Staff
TestName1 1
TestName2 2
b) Created a Query (Table1 Query) to provide a Total of 3 as a sum total - this works as I get a total of 3.
c) I created a Form that I want as my Summary Form.
and inserted a TextBox and placed the following formulae within the Expression Builder :
So I have the following :
But the Form field yields a #Name?
Sorry for the novice question but I have read up quite a lot about this and this should work fine. I am confused why this simple little task is daunting.
Any help would be great. thxs in advance
Two variants:
Set the query as datasource for your form and select the column with sum [Sum Of No of staff] as control source for your text field
set as Control Source for text field as
= Dlookup("[Sum Of No of staff]", "[Table1 Query]")
I am new to this webiste and SSRS.
I have data in the below format. I am getting below data from a procedure based on logged on user.
Empid Field_Name
100 C_By
200 R_By
300 C_By
400 R_By
500 C-By
I would like to create a report parameter which accepts values from empid based on Filed_Name. ex: I want filter the data empid where Filed_Name='C_By' value.
Thanks & Regards,
Ravi
I am not sure if I read your question right but what I believe you asked is you have two parameters that one is dependent upon the other.
You can have cascading parameters. What you need to do is to setup your EmpID parameter to use a data set for its available values and set the parameter for that data set equal to the value of the field_name parameter.
Cascading Parameters
If this is not what you need, you may want to rephrase your question.
i have a table with two columns and two records as follows.
TypeOfReport Links
InvalidRecords http://ReportInvalid
MissingRecords http://ReportMissing
I have a package with execute sql task selecting * from the table above, full result set selected and an object variable created, it works good. but now when i connect it with send mail task, i wanna send email like
Subject : Reports On InvalidRecords and MissingRecords
MessageText : Links for the Reports : http://ReportInvalid
: http://ReportMissing
Can somebone help me with it.
NOTE : i tried creating user and object variable but its good if i have only one record in table. i tried creating 2 user and 2 object variables as well but didnt work.
Thanks
Your Execute SQL Task is returning multiple rows and you're right to have the results go to a variable of object type. Now, it can be a challenging getting values from multiple rows of data into variable values in SSIS, but it's not impossible. However, for your situation, you may want to alter your SQL statement to return one row.
Start by creating two variables, one for the invalid-records link and one for the missing-records link. Edit your Execute SQL Task and replace your SQL statement with the following:
SELECT MAX(CASE TypeOfReport WHEN 'InvalidRecords'
THEN links ELSE NULL END) AS InvalidRecords,
MAX(CASE TypeOfReport WHEN 'MissingRecords'
THEN links ELSE NULL END) AS MissingRecords
FROM mytable
This query will return one row with two columns, one for each link. This is known as a pivot (you could use the PIVOT clause to produce the same results.) The big advantage for you is that there's one row.
Also, change the ResultSet property to Single row.
Select the Result Set tab and add two items to the list. The first row should have 0 for Result Name and your InvalidRecords variable for Variable Name. The second row should have 1 for the Result Name and your MissingRecords variable for Variable Name. That should get your link values into variables and ready for your email task.