Power BI on MMEX with SUID

MMEX4Desktop, incl. Windows, macOS, and Most Unix variants using the GTK+ toolkit

Moderator: Renato

oogyboogydad
New User
Posts: 10
Joined: Wed Jun 16, 2021 12:39 pm
Are you a spam bot?: No

Power BI on MMEX with SUID

Post by oogyboogydad »

This functionality has stopped my ability to use Power BI to build a dashboard, as the 16 digit length of the IDs is too long for Power BI to import. I only ever see the first 10 digits of any of the new IDs, and even transforming them to text does not bring in the entire ID.

Would it be possible to run an integer-based ID in tandem with the new SUID system in each of the tables?
MlinMMEX
Super User
Posts: 124
Joined: Wed Jul 24, 2024 6:16 pm
Are you a spam bot?: No

Re: [SOLVED] Transaction number

Post by MlinMMEX »

<< to use Power BI to build a dashboard>> So you manage transactions in MMEX and then export to PowerBI for your real reporting needs?

Yeah... it is clear that MMEX's "Achilles heel" is reporting.
oogyboogydad
New User
Posts: 10
Joined: Wed Jun 16, 2021 12:39 pm
Are you a spam bot?: No

Re: [SOLVED] Transaction number

Post by oogyboogydad »

@MlinMMEX Yes, exactly right. I do find MMEX difficult to get reporting working.

Although the real reason for trying to build the PowerBI dashboard to is to upskill myself to try to keep up with the younglings at work!
guangong
Developer
Posts: 654
Joined: Wed Dec 21, 2011 5:58 am
Are you a spam bot?: No

Re: Power BI on MMEX with SUID

Post by guangong »

Wow, can you try out Power BI's Whole Number
Whole number has no digits to the right of the decimal place. This type allows for 19 digits of positive or negative whole numbers between -9,223,372,036,854,775,807 (-2^63+1) and 9,223,372,036,854,775,806 (2^63-2), so can represent the largest possible numbers of the numeric data types.
oogyboogydad
New User
Posts: 10
Joined: Wed Jun 16, 2021 12:39 pm
Are you a spam bot?: No

Re: Power BI on MMEX with SUID

Post by oogyboogydad »

@guangong Thank you for the tip! Although after some more testing I'm not sure it's Power BI that's doing the truncation to 10 characters, it may be the ODBC driver. The field doesn't refresh the full string even when converting to Text, still only the leftmost 10 digits are imported, so the truncation seems to be occurring before Power BI is involved.

If anyone has any suggestions for importing this field, I'm all ears!

Thanks

Nick
guangong
Developer
Posts: 654
Joined: Wed Dec 21, 2011 5:58 am
Are you a spam bot?: No

Re: Power BI on MMEX with SUID

Post by guangong »

It's an integer field.

Would you share some screenshots to illustrate your settings?
oogyboogydad
New User
Posts: 10
Joined: Wed Jun 16, 2021 12:39 pm
Are you a spam bot?: No

Re: Power BI on MMEX with SUID

Post by oogyboogydad »

Thank you @guangong

Here are two screenshots:
Screenshot 2025-04-07 185008.png
Screenshot 2025-04-06 152718.png
You can see that every instance of the SUID is truncated to the left-handmost 10 characters.

I have checked the type of all these fields, and all of them are "Whole Number". The situation does not change when I change the type to "Text".

You can also see that the data in the PayeeID field is actually "2147483647" because I was able to filter on that specific value in my SelectRows statement.

Any suggestions gratefully received.

Kind regards

Nick
You do not have the required permissions to view the files attached to this post.
guangong
Developer
Posts: 654
Joined: Wed Dec 21, 2011 5:58 am
Are you a spam bot?: No

Re: Power BI on MMEX with SUID

Post by guangong »

Would you set up Power BI from scratch with a new database copy? I suspect it was due to some previous settings
guangong
Developer
Posts: 654
Joined: Wed Dec 21, 2011 5:58 am
Are you a spam bot?: No

Re: Power BI on MMEX with SUID

Post by guangong »

seems it is Power BI's issue, and a very old one.

https://community.fabric.microsoft.com/ ... m-p/367211
lucasbank
New User
Posts: 2
Joined: Mon Jun 02, 2025 9:27 am
Are you a spam bot?: No

Re: Power BI on MMEX with SUID

Post by lucasbank »

Yes, it is possible to run an integer-based ID alongside the SUID system in each table. This approach would maintain compatibility with tools like Power BI by providing a simpler numeric identifier, while still using SUIDs internally for uniqueness and consistency.
Last edited by lucasbank on Mon Jun 02, 2025 9:31 am, edited 1 time in total.