id
6 TopicsShow only one value for same Id else leave it blank
Hello, I have an issue on my report and i dont know how to do it, i have this table : IdRole NameRole 1 AA 2 AB 3 AC And this second table : IdUser IdRole 1 1 1 2 2 1 3 3 And i have my last table for example with somes informations : IdUser Date Point NameRole 1 03/05/2021 500 AA 1 01/05/2021 500 AA 2 03/03/2020 800 Blank 3 17/02/2020 1000 Blank I want to have this last colum as a result, The User have many role but the only Role that im interested is to know if he have "AA" role else leave it blank. Im in DirectQuery if someone can help me please. Thank you for the futur answer.Solved1.2KViews0likes1CommentEvolution of value per id filtering by date
Hi, I have been investigating on the forum but still have some issues. I have a table like this: Id Date Value 1 1/1/2020 Prospect 1 2/2/2020 Lead 1 5/5/2020 Opportunity 2 3/3/2020 Prospect 2 4/4/2020 Lead 2 7/7/2020 Opportunity I need a measure that shows the last value by id filtering by month. For example, if I select march/2020 I need to have something like: Id value 1 Lead 2 Prospect Then, I need to display a chart that shows the number of distinct id´s per value filtering by month If I select 5/5/2020, I need to see something like: Value Count of id Prospect 0 Lead 1 Opportunity 1 This means, we count the number of id´s per value, depending on the last value of an id at a certain date2KViews0likes6CommentsHow to Make a Batch ID
Table 1 - 'Source L1 to L3' L1 L2 L3 Batch ID... value1 anothervalue1 andanothervalue1 value2...etc... anothervalue2...etc... andanothervalue2...etc... All values are text Table 2 -'L1Distinct' L1 L1Index value1 1 value2 2...etc... L1 is text, L2 is an index value (Number) Values in L1 are related to L1 in 1st table and are only the DISTINCT values in that tables L1 column Table 3 & 4 'L2Distinct' and L3Distinct' are same as 'L1Distinct' but for L2 and L3 columns All I want to do is take the columns 'L1Index' on table L1Distinct, 'L2Index on table L2Distinct and 'L3Index' on table L3Distinct and present them as a sequence in the original table.... So if the numbers where 1, 3, 10 for example I'd like 1310 in the column. I'm new to DAX and struggling to do this. Any help would be appreciated. (Or even advice on an easier way to make a Batch ID based on all distinct values in each column having the same number ? Thanks!Solved2.2KViews0likes4CommentsApply difference to multiple IDs within a group in DAX
I have a table with daily Consumption totals and a fixed Capacity amount per ID. I want the Consumption value to be subtracted from the "first" ID's Capacity until it is 0, and then subtract the remaining amount from the next ID within the group. Desired output is the Amount Left column below: Date Group ID Capacity Consumption Amount Left 1/1/2019 A 1 10 8 2 1/1/2019 A 2 15 8 15 1/1/2019 A 3 15 8 15 1/2/2019 A 1 10 9 0 1/2/2019 A 2 15 9 4 1/2/2019 A 3 15 9 15 1/3/2019 A 1 10 10 0 1/3/2019 A 2 15 10 0 1/3/2019 A 3 15 10 11.7KViews0likes4Comments