March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
I need to return a calculate table with the datarows highlighted below. Basically All rows from the table where Marker =1
The column Marker is a DAX measure .
Report Date | EDW CustomerID | IndexRow Measure | Marker | |||
8/31/2020 0:00 | 3 | 1 | 0 | |||
9/30/2020 0:00 | 3 | 2 | 0 | |||
10/31/2020 0:00 | 3 | 3 | 0 | |||
11/30/2020 0:00 | 3 | 4 | 0 | |||
4/30/2021 0:00 | 3 | 5 | 1 | |||
8/31/2020 0:00 | 4 | 1 | 0 | |||
9/30/2020 0:00 | 4 | 2 | 0 | |||
10/31/2020 0:00 | 4 | 3 | 0 | |||
11/30/2020 0:00 | 4 | 4 | 0 | |||
4/30/2021 0:00 | 4 | 5 | 1 | |||
8/31/2020 0:00 | 5 | 1 | 0 | |||
9/30/2020 0:00 | 5 | 2 | 0 | |||
10/31/2020 0:00 | 5 | 3 | 0 | |||
11/30/2020 0:00 | 5 | 4 | 0 | |||
4/30/2021 0:00 | 5 | 5 | 1 | |||
8/31/2020 0:00 | 6 | 1 | 0 | |||
9/30/2020 0:00 | 6 | 2 | 0 | |||
10/31/2020 0:00 | 6 | 3 | 0 | |||
11/30/2020 0:00 | 6 | 4 | 0 | |||
4/30/2021 0:00 | 6 | 5 | 1 |
@Anonymous
This should work
New Table = CALCULATETABLE ( Table , Table[Marker] = 1 )
or this
New Table = FILTER ( Table , Table[Marker] = 1 )
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
Thanks for your Reply @Fowmy .
But the CALCULATETBALE expression the way you mentioned above gives me an error
Not sure why ? and how to get rid of this error?
Is this becasue IndexRow Measure is a DAX measure with zeros/ones value?
Please help me understand this error as well the best possible approach to achieve the desired output
Thanks
@Anonymous
First, you need to be clear about creating tables and measures. When you create a table to add to your model, you are not supposed to use measures as measures are calculated once you complete adding the tables. Measures work on the filter context present in your report environment.
Let me know the calculation for your [Marker] measure, then you can create a new table by adding this measure in your new table.
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
Thanks for the reply @Fowmy .
To give you full context of the scenario...the table above has two DAX measures , Index Row Measure and Marker ..why I need to keep it that way is becasue my data changes based on the date slicer ....So as you can imagine the IndexRow Measure value will change if the date range selected by the user is different from the one shown above in the table .
Calculations for the both the DAX Measures is as shown below ::::
HI @Anonymous ,
You have mentioned you need to calculatetable where marker = 1 right? So your code would be like below:-
member_channel_new =
CALCULATETABLE (
'Member channel Utilization',
'Member channel Utilization'[marker] = 1
)
Thanks,
Samarth
Best Regards,
Samarth
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
23 | |
16 | |
12 | |
9 | |
7 |
User | Count |
---|---|
38 | |
32 | |
28 | |
12 | |
11 |