Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
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
Solved! Go to Solution.
Hi @jiji ,
Pls refer the below:
1.unpovit:
2.use the below dax to create new column:
WEEK2 = RIGHT('Table 2'[Attribute],1)COUNT = CALCULATE(COUNT('Table 2'[Value]),FILTER(ALL('Table 2'),'Table 2'[Name]=EARLIER('Table 2'[Name])&&'Table 2'[Value]=EARLIER('Table 2'[Value])))COUNT2 = 'Table 2'[COUNT]+0.1*'Table 2'[WEEK2]TEST = MAXX(FILTER('Table 2','Table 2'[Name]=EARLIER('Table 2'[Name])),'Table 2'[COUNT]+0.1*'Table 2'[WEEK2])
3.create new table:
Table 3 = SELECTCOLUMNS(FILTER('Table 2','Table 2'[COUNT2]='Table 2'[TEST]),"Name", 'Table 2'[Name],"Status",'Table 2'[Value],"count",'Table 2'[COUNT])
Output result:
Best Regards
Lucien
Hi @jiji ,
Pls refer the below:
1.unpovit:
2.use the below dax to create new column:
WEEK2 = RIGHT('Table 2'[Attribute],1)COUNT = CALCULATE(COUNT('Table 2'[Value]),FILTER(ALL('Table 2'),'Table 2'[Name]=EARLIER('Table 2'[Name])&&'Table 2'[Value]=EARLIER('Table 2'[Value])))COUNT2 = 'Table 2'[COUNT]+0.1*'Table 2'[WEEK2]TEST = MAXX(FILTER('Table 2','Table 2'[Name]=EARLIER('Table 2'[Name])),'Table 2'[COUNT]+0.1*'Table 2'[WEEK2])
3.create new table:
Table 3 = SELECTCOLUMNS(FILTER('Table 2','Table 2'[COUNT2]='Table 2'[TEST]),"Name", 'Table 2'[Name],"Status",'Table 2'[Value],"count",'Table 2'[COUNT])
Output result:
Best Regards
Lucien
Hi,
For the row of Mary, if there were 3 C's and 3 F's, then what result would you expect?
Hello Ashish, Thank you for your message. In that scenario, I would only be interested on the latest dates unchanged status. Say:
NAME W1 W2 W3 W4 W5 W6
MAR C C A A F F
GOAL IS
NAME STATUS COUNT
MARY F 2
I hope this makes sense. My data in the back end is the typical: Name, Date, Status Columns.
Then in the dashboard I just created a matrix table so that I could place Date as columns then count the number of status.
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.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 53 | |
| 45 | |
| 44 | |
| 20 | |
| 19 |
| User | Count |
|---|---|
| 73 | |
| 71 | |
| 34 | |
| 33 | |
| 31 |