below is my query. Kindly help.
I have a table visual in Power BI as below so when I select request id '1' all other visuals in that report page shows the the corresponding data. I have a slicer called 'Calendar date' where it shows date from 2019 to 2022 and user can select whatever dates they want.
My question is when user selects a request id from the below table visual, the Calendar date slicer must automatically select 'Request Start date. Is this possible?
Request id| Request Name| Request start date| Request End date
---------------------------------------------------------------
1 | A | DD/MM/2020 | DD/MM/2021
2 | B | DD/MM/2021 | DD/MM/2022
3 | C | DD/MM/2022 | DD/MM/2023
4 | D | DD/MM/2019 | DD/MM/2019
5 | E | DD/MM/2018 | DD/MM/2018
This feature is currently not possible in Power BI. Lets hope in future this will be available.
Related
I am new to PowerBi.
What I am trying to do is summarize an email marketing report for open, clicks with the exported data. The data looks like
| Campaign Name | Email Address | Event Type |
|:---------------: |:---------------------:| :--------: |
| Test Campaign | test#example.com | Open |
| Test Campaign | test#example.com | Open |
| Test Campaign | test123#example.com | Open |
| Test Campaign 2 | test#example.com | Open |
| Test Campaign 2 | test#example.com | Open |
| Test Campaign 2 | test1234#example.com | Open |
| Test Campaign 2 | test#example.com | Clicked |
| Test Campaign 2 | test#example.com | Clicked |
I want to calculate each event type that is unique for each email address and summarize it by the campaign name. There can be duplicate email address if someone opens email twice. And there are multiple different campaign names
I want PowerBI to be able to take the above data and summarize it as such with a measure formula :
Campaign Name
Open
Click
Test Campaign
2
0
Test Campaign 2
2
1
Any suggestions? I can't get it to summarize by campaign name.
Clicks = Calculate(DistinctCount('table'[column]),'table2 for event type'[event type] = "click"))
You can do it in DAX very quickly.
In PowerBI, you create two new measures:
Please note that I've used 'Table' as the table name, replace it with the actual name of your table.
'Table'[Open_Nb] =
CALCULATE(
DISTINCTCOUNT('Table'[Email Address ]),
'Table'[Event Type] = "Open"
)
and
'Table'[Clicked_Nb] =
CALCULATE(
DISTINCTCOUNT('Table'[Email Address ]),
'Table'[Event Type] = "Clicked"
)
Then you can use this table two ways. You can create a new Table visual and drag and drop :
Campaign Name
Measure Open_Nb
Measure Clicked_Nb
Or, directly as a new table with the expression :
ADDCOLUMNS(
SUMMARIZE(
'Table',
'Table'[Campaign Name ]
),
"Open",
'Table'[Open_Nb],
"Click",
'Table'[Clicked_Nb]
)
I have the following columns in my dataset:
_____________________________________________________________________________________
| ... |Start Date| Start Time | End Date | End Time | Production Start Date | ... |
|_____|__________|____________|____________|____________|_______________________|_____|
| ... | 01022020 | 180000 | 02022020 | 190000 | 01022020 | ... |
| | | | | | | |
Sometimes the Start Date + Start Time etc. values are blank but the Production Start Date values are always populated.
When the Start Date is empty (NULL), for example, I want my dataset (or ideally, graph) to read the Production Start Date.
How can I achieve this in Power BI?
I know I can make a conditional column, then within that, determine which column to read data from but is there any way to add a condition to the existing Start Date column? I couldn't see such an option in the context menu or subsequent ribbon options.
Is my only option to create a custom conditional column instead?
As #Andrey Nikolov mentioned in the comments, the only ways you can achieve this is to:
1 Create a calculated DAX column.
2 Create a custom column in query mode (M).
3 Edit the original source table.
doug
I have a table that contains multiple columns with their named having either the suffix _EXPECTED or _ACTUAL. For example, I'm looking at my sold items from my SoldItems Table and I have the following columns: APPLES_EXPECTED, BANANAS_EXPECTED, KIWIS_EXPECTED, APPLES_ACTUAL, BANANAS_ACTUAL, KIWIS_ACTUAL (The Identifier of the table is the date, so we have results per date). I want to show that data in a table form, something like this (for a selected date in filters:
+------------+----------+--------+
| Sold items | Expected | Actual |
+------------+----------+--------+
| Apples | 10 | 15 |
| Bananas | 8 | 5 |
| Kiwis | 2 | 1 |
+------------+----------+--------+
How can I manage something like this in Power BI ? I tried playing with the matrix/table visualization, however, I can't figure out a way to merge all the expected and actual columns together.
It looks like the easiest option for you would be to mould the data a bit differently using Power query. You can UNPIVOT your data so that all the expected and actual values become rows instead of columns. For example take the following sample:
Date Apples_Expected Apples_Actual
1/1/2019 1 2
Once you unpivot this it will become:
Date Fruit Count
1/1/2019 Apples_Expected 1
1/1/2019 Apples_Actual 2
Once you unpivot, it should be fairly straightforward to get the view you are looking for. The following link should walk you through the steps to unpivot:
https://support.office.com/en-us/article/unpivot-columns-power-query-0f7bad4b-9ea1-49c1-9d95-f588221c7098
Hope this helps.
I have two tables which contain the same data - TableA (PersonId, ItemId, Session) and TableB(PersonId, ItemId, Session). Here is some test data:
PersonId | ItemId | Session
-------------------------------------------------
1 | 1 | Summer 2017
1 | 1 | Spring 2017
2 | 1 | Summer 2017
2 | 2 | Summer 2017
3 | 5 | Spring 2017
There are two slicers for the different sessions (for simplicity I have only showed two in the test data but they may be a lot more). The user has to see the number of different PersonIds for the selected session in the first slicer by
ItemId. Then there should be information on the number of PersonIds that are both present in the first and second sessions in the selected slicers.
My idea is to filter TableA by the selected value in the first slicer and then filter TableB by the selected value in the second slicer, but I am not sure how to do that dynamically? Also, I may need a third table for the intersection of filtered TableA and Filtered TableB. Do you have any ideas on how I achieve this functionality?
I have two tables like the fallowing:
On server:
| Orders Table | OrderDetails Table
-------------------------------------------------------------------------------------
| Id | Id
| OrderDate | OrderId
| ServerName | Product
| Quantity
On client:
| Orders Table | OrderDetails Table
-------------------------------------------------------------------------------------
| Id | Id
| OrderDate | OrderId
| Product
| Quantity
| ClientName
I need to sync the [Server].[Orders Table].[ServerName] to [Client].[OrderDetails Table].[ClientName]
The Question:
What is the true and efficient way of making it?
I know Deprovisioning and provisioning with different config, is one way of doing it.
So I just wanna know the correct way.
Thanks.
EDIT :
Other columns of each table should sync normally ([Server].[Orders Table].[Id] to [Client].[Orders Table].[Id] ...).
And mapping strategy sometimes changes based on the row of data (which which is sending/receiving).
Sync Fx is not an ETL tool. simply put, it's DB sync is per table.
if you really want to force it to do what you want, you can simply intercept ChangesSelected event for the OrderDetails table, lookup the extra column from the other table and then dynamically add the column to the dataset before it gets applied on the other side.
see this link on how to manipulate the change dataset